Commit graph

37 commits

Author SHA1 Message Date
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
Ben Rog-Wilhelm
1ee9c1bfa7
Convert text file line endings to LF. 2022-05-09 07:20:47 -05:00
Aevann1
82e044ea93 xvc 2022-02-13 01:10:29 +02:00
Aevann1
694dfca0a4 fds 2022-01-19 11:07:16 +02:00
Aevann1
234401f351 fds 2021-11-02 13:33:36 -07:00
Aevann1
2761b720d1 agendaposter award 2021-10-21 19:01:25 +02:00
Aevann1
2cce840c39 cum 2021-10-21 16:47:27 +02:00
Aevann1
b69daaabc9 unpin award 2021-10-21 01:37:53 +02:00
Aevann1
936b9f06a2 fsd 2021-10-21 00:01:30 +02:00
Aevann1
fd655eadec fsd 2021-10-20 23:06:25 +02:00
Aevann1
21e77d2a61 train award 2021-10-20 21:34:56 +02:00
Aevann1
38dbe3893b fds 2021-10-18 20:42:42 +02:00
Aevann1
b88b8ddcc4 sdffsd 2021-10-18 20:09:02 +02:00
Aevann1
97878f535f gh 2021-10-18 19:55:07 +02:00
Aevann1
412f769343 fdfd 2021-10-15 21:48:53 +02:00
Aevann1
2265d60b22 fd 2021-10-15 16:08:27 +02:00
Aevann1
1e8b636da0 fgdg 2021-10-07 00:38:15 +02:00
Aevann1
d52c7fc9db force push 2021-09-23 10:44:26 +02:00
Aevann1
66b302a86d fsdfs 2021-09-22 16:51:36 +02:00
Aevann1
22b56f5ed4 fdsfsd 2021-09-22 00:44:18 +02:00
Aevann1
a7a555cabd fdsfs 2021-09-21 23:27:32 +02:00
Aevann1
d504c6eb25 fdsfsd 2021-09-20 16:57:43 +02:00
Aevann1
781f67d729 fsfsd 2021-09-20 15:14:42 +02:00
Aevann1
a4cdf18ad3 dfs 2021-09-20 15:11:10 +02:00
Aevann1
6bcead70de sdfsdf 2021-09-19 20:27:00 +02:00
Aevann1
c5f8e567bb fsdfs 2021-09-19 20:25:40 +02:00
Aevann1
11c1bbd203 sdfsfd 2021-09-17 14:36:39 +02:00
Aevann1
63316b51e9 fd 2021-09-08 11:00:44 +02:00
Aevann1
48b6d9fe38 gf 2021-09-08 10:37:27 +02:00
Aevann1
721d8dc65c fd 2021-09-08 05:22:52 +02:00
Aevann1
5b79f799d4 fd 2021-09-08 05:19:52 +02:00
Aevann1
5c75d2cf58 dffd 2021-08-23 19:53:50 +02:00
fireworks88
a880b4ed05 uhfewuifurhfiurewhu 2021-08-22 22:11:48 +02:00
Aevann1
1f27f59eba gfgf 2021-08-22 20:26:19 +02:00
Aevann1
8c8141af09 fdfd 2021-08-22 20:25:50 +02:00
Aevann1
46177da4ef dffd 2021-08-22 19:35:32 +02:00
Aevann1
254995d1e4 fddf 2021-08-04 17:35:10 +02:00
Renamed from drama/classes/award.py (Browse further)