-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
717 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
app/db/migrations/versions/~2024_07_19_1136-3fffc621bff4_.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
"""empty message | ||
Revision ID: 3fffc621bff4 | ||
Revises: 5c63de4e4e49 | ||
Create Date: 2024-07-19 11:36:32.716999 | ||
""" | ||
|
||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "3fffc621bff4" | ||
down_revision = "5c63de4e4e49" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table("page", schema=None) as batch_op: | ||
batch_op.add_column(sa.Column("controller", sa.String(), nullable=True)) | ||
|
||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table("page", schema=None) as batch_op: | ||
batch_op.drop_column("controller") | ||
|
||
# ### end Alembic commands ### |
34 changes: 34 additions & 0 deletions
34
app/db/migrations/versions/~2024_07_19_1233-3de2807b6917_.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
"""empty message | ||
Revision ID: 3de2807b6917 | ||
Revises: 3fffc621bff4 | ||
Create Date: 2024-07-19 12:33:29.898715 | ||
""" | ||
|
||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "3de2807b6917" | ||
down_revision = "3fffc621bff4" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table("round", schema=None) as batch_op: | ||
batch_op.add_column(sa.Column("source_template_id", sa.UUID(), nullable=True)) | ||
batch_op.add_column(sa.Column("template_name", sa.String(), nullable=True)) | ||
|
||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table("round", schema=None) as batch_op: | ||
batch_op.drop_column("template_name") | ||
batch_op.drop_column("source_template_id") | ||
|
||
# ### end Alembic commands ### |
38 changes: 38 additions & 0 deletions
38
app/db/migrations/versions/~2024_07_19_1320-da88c6b36588_.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
"""empty message | ||
Revision ID: da88c6b36588 | ||
Revises: 3de2807b6917 | ||
Create Date: 2024-07-19 13:20:24.997440 | ||
""" | ||
|
||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "da88c6b36588" | ||
down_revision = "3de2807b6917" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table("round", schema=None) as batch_op: | ||
batch_op.add_column(sa.Column("prospectus_link", sa.String(), nullable=False)) | ||
batch_op.add_column(sa.Column("privacy_notice_link", sa.String(), nullable=False)) | ||
batch_op.drop_column("privacy_notice") | ||
batch_op.drop_column("prospectus") | ||
|
||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table("round", schema=None) as batch_op: | ||
batch_op.add_column(sa.Column("prospectus", sa.VARCHAR(), autoincrement=False, nullable=False)) | ||
batch_op.add_column(sa.Column("privacy_notice", sa.VARCHAR(), autoincrement=False, nullable=False)) | ||
batch_op.drop_column("privacy_notice_link") | ||
batch_op.drop_column("prospectus_link") | ||
|
||
# ### end Alembic commands ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.