Commit graph

83 commits

Author SHA1 Message Date
FatherInire
fcba426009
Remove some gimmicky r/drama features.
Co-authored-by: Inire <>
2022-05-21 21:43:00 -05:00
faul-sname
4892b58d10
Add migrations using alembic.
* #39 Add Flask-Migrate dep

* #39 Make it such that flask db init can run

https://github.com/miguelgrinberg/Flask-Migrate/issues/196#issuecomment-381343393

* Run flask db init, update migrations.env, commit artifacts

* Set up a script such that you can `docker-compose exec files bash -c 'cd /service; FLASK_APP="files/cli:app" flask '` and have it do whatever flask thing you want

* Fix circular dependency

* import * is evil

* Initial alembic migration, has issues with constraints and nullable columns

* Bring alts table up to date with alembic autogenerate

* Rerun flask db revision autogenerate

* Bring award_relationships table up to date with alembic autogenerate

* [#39/alembic] files/classes/__init__.py is evil but is at least explicitly evil now

* #39 fix model in files/classes/badges.py

* #39 fix model in files/classes/domains.py and files/classes/clients.py

* #39 fix models: comment saves, comment flags

* #39 fix models: comments

* Few more imports

* #39 columns that are not nullable should be flagged as not nullable

* #39 Add missing indexes to model defs

* [#39] add missing unique constraints to model defs

* [#39] Temporarily undo any model changes which cause the sqlalchemy model to be out of sync with the actual dump

* #39 Deforeignkeyify the correct column to make alembic happy

* #39 flask db revision --autogenerate now creates an empty migration

* #39 Migration format such that files are listed in creation order

* #39 Better first revision

* #39 Revert the model changes that were required to get to zero differences between db revision --autogenerate and the existing schema

* #39 The first real migration

* #39 Ensure that foreign key constraints are named in migration

* #39 Alembic migrations for FK constraints, column defs

* [#39] Run DB migrations before starting tests

* [#39] New test to ensure migrations are up to date

* [#39] More descriptive test failure message

* Add -T flag to docker-compose exec

* [#39] Run alembic migrations when starting the container
2022-05-17 18:55:17 -05:00
iro84657
b7da8b575a Add trailing LF to text files 2022-05-10 21:05:51 -04:00
Ben Rog-Wilhelm
1ee9c1bfa7
Convert text file line endings to LF. 2022-05-09 07:20:47 -05:00
Aevann1
96b55696e4 fds 2022-04-18 23:11:30 +02:00
Aevann1
68931a7bb6 fds 2022-04-13 16:32:03 +02:00
Aevann1
de84a302df fsd 2022-04-12 22:45:07 +02:00
Aevann1
265a13a601 site settings 2022-04-12 21:05:50 +02:00
Aevann1
ccacd78fa8 fart mode 2022-04-12 19:29:52 +02:00
Aevann1
5d6e14b9b3 fsd 2022-04-02 19:11:35 +02:00
Aevann1
5174bb0f8a tabs 2022-04-01 20:38:31 +02:00
Aevann1
6c97156856 fart 2022-03-19 21:15:13 +02:00
Aevann1
0e28cd98c3 gfd 2022-03-19 20:13:12 +02:00
Aevann1
54e784b4a2 arrr 2022-03-19 20:12:14 +02:00
Aevann1
5997438bff t 2022-02-28 22:14:56 +02:00
Aevann1
e410bc879c big big chungus big chungus big chungus 2022-02-13 03:08:12 +02:00
Aevann1
82e044ea93 xvc 2022-02-13 01:10:29 +02:00
Aevann1
579aa7eef3 fgd 2022-02-13 00:23:41 +02:00
Aevann1
e9426a18dc sdf 2022-02-05 10:42:54 +02:00
Aevann1
035d37b134 fsd 2022-02-04 20:35:39 +02:00
Aevann1
41a500137a gdf 2022-02-04 15:11:14 +02:00
Aevann1
88d635e03d sdf 2022-01-30 15:40:11 +02:00
Aevann1
276d7e498b dfs 2022-01-29 18:10:31 +02:00
Aevann1
0677106b21 czx 2022-01-28 22:02:35 +02:00
Aevann1
be9d7a1ba8 fd 2022-01-28 06:37:40 +02:00
Aevann1
2db66c6149 cxvcvx 2022-01-21 19:21:46 +02:00
Aevann1
694dfca0a4 fds 2022-01-19 11:07:16 +02:00
Aevann1
b98b330409 under 2022-01-09 17:25:45 +02:00
Aevann1
1bea9edf79 under attack 2022-01-09 17:15:02 +02:00
Aevann1
e810530ac0 df 2022-01-08 08:52:34 +02:00
Aevann1
fbb0fb95d2 bvcbc 2022-01-08 08:41:40 +02:00
Aevann1
edc913832e fdsfs 2022-01-02 20:25:24 +02:00
Aevann1
9f989e912e dfs 2021-12-30 07:27:22 +02:00
Aevann1
ba286d52b2 fdfd 2021-12-01 14:59:23 +02:00
Aevann1
71325bcf57 fdsfds 2021-11-30 15:09:17 +02:00
Aevann1
1b49a03cea 1 2021-11-26 21:28:55 +02:00
Aevann1
8b36d95215 sdffd 2021-11-26 00:09:18 +02:00
Aevann1
fd5ae86016 fdsfsd 2021-11-24 01:04:16 +02:00
Aevann1
a70b7c1121 dfsfsd 2021-11-24 01:01:50 +02:00
Aevann1
23cc2e7f31 fdssfd 2021-11-24 00:56:56 +02:00
Aevann1
b2eb5712e0 fdsfsd 2021-11-24 00:54:48 +02:00
Aevann1
2177f708d0 fsdfds 2021-11-23 02:20:23 +02:00
Aevann1
4943f304d9 fsdfds 2021-11-16 23:37:09 +02:00
Aevann1
3975e10dc7 splash 2021-11-16 23:21:53 +02:00
Aevann1
234401f351 fds 2021-11-02 13:33:36 -07:00
Aevann1
6663702f67 misc 2021-10-25 20:08:03 +02:00
Aevann1
2cce840c39 cum 2021-10-21 16:47:27 +02:00
Aevann1
fd655eadec fsd 2021-10-20 23:06:25 +02:00
Aevann1
2265d60b22 fd 2021-10-15 16:08:27 +02:00
Aevann1
002e55476c gdfsd 2021-10-08 04:14:54 +02:00