Commit graph

27 commits

Author SHA1 Message Date
justcool393
4a280e345a style: remove unnecessary str call (the thing is already a str!) 2023-02-07 07:00:41 -06: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
5d6e14b9b3 fsd 2022-04-02 19:11:35 +02:00
Aevann1
dd39711709 g 2022-02-16 03:16:01 +02:00
Aevann1
82e044ea93 xvc 2022-02-13 01:10:29 +02:00
Aevann1
53816a32b4 vcx 2022-01-28 22:17:17 +02:00
Aevann1
0677106b21 czx 2022-01-28 22:02:35 +02:00
Aevann1
3cd90b1cee fdfd 2021-11-07 15:37:26 +02:00
Aevann1
90a6e7c53b redundant 2021-11-06 17:52:48 +02:00
Aevann1
234401f351 fds 2021-11-02 13:33:36 -07:00
Aevann1
2265d60b22 fd 2021-10-15 16:08:27 +02:00
Aevann1
1e8b636da0 fgdg 2021-10-07 00:38:15 +02:00
Aevann1
4fb654a56a dfssfd 2021-10-02 13:34:37 +02:00
Aevann1
447ae44a4f fsdsf 2021-09-23 01:41:51 +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
6b7ae51d61 dfsfsd 2021-09-19 22:06:52 +02:00
Aevann1
5666efcbec fsdfs 2021-09-19 20:31:31 +02:00
Aevann1
8c9ce1463b fsdsfd 2021-09-19 20:28:31 +02:00
Aevann1
c5f8e567bb fsdfs 2021-09-19 20:25:40 +02:00
Aevann1
a16d56358c dfsfsd 2021-09-19 20:22:57 +02:00
Aevann1
11c1bbd203 sdfsfd 2021-09-17 14:36:39 +02:00
Aevann1
6cc19ce02a sfd 2021-09-17 10:29:05 +02:00
Aevann1
254995d1e4 fddf 2021-08-04 17:35:10 +02:00
Renamed from drama/classes/clients.py (Browse further)