Commit graph

294 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
Michael House
19903cccb5
Adding usernotes. 2022-05-16 11:53:24 -05:00
iro84657
b7da8b575a Add trailing LF to text files 2022-05-10 21:05:51 -04:00
outruncolors
de062c025d
Added doubledown and insurance functionality (#235)
* Added doubledown functionality

* Add insurance
2022-05-01 20:24:01 +02:00
Aevann1
e5e27d4492 fds 2022-04-16 18:44:32 +02:00
Aevann1
0a963c00a8 fds 2022-04-16 18:42:28 +02:00
Aevann1
d5387f8e0e fsd 2022-04-16 18:42:18 +02:00
Aevann1
cc97944296 fds 2022-04-16 18:41:38 +02:00
Aevann1
42f70bc64e fdsfds 2022-04-15 18:28:08 +02:00
Aevann1
0f256238e1 gf 2022-04-10 20:42:58 +02:00
Aevann1
1f5799d82b sfd 2022-04-10 18:43:39 +02:00
Aevann1
3ca087239d fsd 2022-04-04 03:41:20 +02:00
Aevann1
6ef1f41bf6 pain 2022-04-04 01:44:54 +02:00
Aevann1
cfa74bf3d2 fds 2022-03-29 20:23:40 +02:00
Aevann1
de96579808 publish fix 2022-03-18 21:05:54 +02:00
Aevann1
e33c4ec93f fds' 2022-03-17 21:15:45 +02:00
Aevann1
eb288ec859 fg 2022-03-06 20:15:13 +02:00
Aevann1
70d35e6af4 chri 2022-03-06 06:23:12 +02:00
Aevann1
46077e7e94 wager 2022-03-06 05:55:02 +02:00
Aevann1
51ba200c7b dfs 2022-03-06 05:44:09 +02:00
Aevann1
86f0c5fdc5 fds 2022-03-06 05:40:23 +02:00
Aevann1
ea6be553ce made wordle and blackjack ajax 2022-03-06 05:25:23 +02:00
Aevann1
89e8c8a340 None 2022-03-05 01:49:38 +02:00
Aevann1
14c568dd3d coned 2022-03-04 23:23:33 +02:00
Aevann1
973f8e3c3b notif_utc 2022-03-04 19:33:58 +02:00
Aevann1
5faab645c2 transfers fix 2022-03-04 18:53:28 +02:00
Aevann1
b3f5559348 LumberFanatic I 2022-03-04 00:10:50 +02:00
Aevann1
4026b8e3f2 wtf 2022-03-03 23:01:37 +02:00
Aevann1
bd356bc87f carp 2022-03-02 02:05:30 +02:00
Aevann1
6f6a90417b fart 2022-03-01 18:50:39 +02:00
Aevann1
ff919ec9f0 created 2022-03-01 02:06:50 +02:00
Aevann1
bb3c2a3036 N 2022-03-01 01:30:44 +02:00
Aevann1
2a7d04ea0a regex2 2022-02-28 00:05:51 +02:00
Aevann1
205e95f36b rand 2022-02-27 00:44:42 +02:00
Aevann1
0b2fd189a5 cope 2022-02-26 20:53:17 +02:00
Aevann1
8b4edcb682 annoying 2022-02-26 15:31:49 +02:00
Aevann1
4019f5a5fe fds 2022-02-24 15:20:48 +02:00
Aevann1
4cc85d7d61 fdsf 2022-02-24 14:50:02 +02:00
Aevann1
e324257dce fd 2022-02-24 10:28:13 +02:00
Aevann1
e9bb06d18a xvc 2022-02-18 11:19:58 +02:00
Aevann1
d603fcf33c mn 2022-02-17 09:12:38 +02:00
Aevann1
43bdb5e066 fd 2022-02-17 08:32:04 +02:00
Aevann1
ba6dacb429 exiles 2022-02-16 06:33:13 +02:00
Aevann1
dd39711709 g 2022-02-16 03:16:01 +02:00
Aevann1
6721538b81 gf 2022-02-16 02:23:46 +02:00
Aevann1
1f3eb88f58 f 2022-02-16 00:54:17 +02:00
Aevann1
06a36002a6 sdf 2022-02-15 00:50:27 +02:00
Aevann1
3b126e72f8
Many to many (#210)
* 8 legs of love

* 8 legs of love 2
2022-02-14 14:25:44 -08:00
Aevann1
19a1f907a7 gfd 2022-02-14 23:07:31 +02:00
Aevann1
6876734477 df 2022-02-14 04:47:28 +02:00