Commit graph

25 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
iro84657
b7da8b575a Add trailing LF to text files 2022-05-10 21:05:51 -04:00
Aevann1
9a793883c1 dsa 2022-05-02 23:30:03 +02:00
Aevann1
ef95ab85dd fsd 2022-04-29 17:19:50 +02:00
Aevann1
4baa34cb0a vcx 2022-04-26 00:43:59 +02:00
Aevann1
37908005fa vxc 2022-04-26 00:41:34 +02:00
Aevann1
269a402309 fsd 2022-04-26 00:28:20 +02:00
Aevann1
72cb84d1cd Revert "vxc"
This reverts commit c21f04d664.
2022-04-25 23:59:12 +02:00
Aevann1
c21f04d664 vxc 2022-04-25 18:38:06 +02:00
Aevann1
5d6e14b9b3 fsd 2022-04-02 19:11:35 +02:00
Aevann1
d5f294db77 gdfg 2022-03-31 18:28:53 +02:00
Aevann1
e5ba846aec blocks num 2022-03-06 03:53:11 +02:00
Aevann1
eac51d16e9 fds 2022-03-06 02:24:23 +02:00
Aevann1
01c5b316c1 /subs 2022-03-06 02:21:13 +02:00
Aevann1
bd356bc87f carp 2022-03-02 02:05:30 +02:00
Aevann1
d6b1011801 farts on u 2022-02-28 04:06:15 +02:00
Aevann1
249544ba56 tar 2022-02-27 17:50:19 +02:00
Aevann1
9df131f40e sfd 2022-02-15 19:54:46 +02:00
Aevann1
23668772e5 nb 2022-02-14 00:35:55 +02:00
Aevann1
64df9d480b fd 2022-02-12 01:34:15 +02:00
BuckFromRdrama
e1dc79858f
Show modded subs on userpage (#205)
* show modded subs

* remove print lol

* added links
2022-02-11 15:33:25 -08:00
Aevann1
cffc44bc9f big chungus commit 2022-02-12 01:32:14 +02:00
Aevann1
03ce2f9707 gdf 2022-02-11 22:01:07 +02:00
Aevann1
0a313c5aa5 dude subdramas lmao 2022-02-10 22:35:16 +02:00
Aevann1
3ff29602d3 crisis 2022-02-05 23:09:17 +02:00