-
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
21 changed files
with
1,717 additions
and
74 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
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
34 changes: 34 additions & 0 deletions
34
app/db/migrations/versions/~2024_08_19_1303-4ec629449867_.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: 4ec629449867 | ||
Revises: | ||
Create Date: 2024-08-19 13:03:32.320669 | ||
""" | ||
|
||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "4ec629449867" | ||
down_revision = "ab7d40d652d5" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.execute("ALTER TYPE componenttype ADD VALUE 'PARA';") | ||
op.execute("ALTER TYPE componenttype ADD VALUE 'DATE_PARTS_FIELD';") | ||
op.execute("ALTER TYPE componenttype ADD VALUE 'CHECKBOXES_FIELD';") | ||
op.execute("ALTER TYPE componenttype ADD VALUE 'CLIENT_SIDE_FILE_UPLOAD_FIELD';") | ||
op.execute("ALTER TYPE componenttype ADD VALUE 'WEBSITE_FIELD';") | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
# Note: PostgreSQL does not support removing values from enums directly. | ||
# To fully support downgrade, consider creating a new enum without the values and swapping them, | ||
# or use a workaround that suits your database version and requirements. | ||
# ### end Alembic commands ### | ||
pass |
36 changes: 36 additions & 0 deletions
36
app/db/migrations/versions/~2024_08_21_1123-ed84bb152ee3_.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,36 @@ | ||
"""empty message | ||
Revision ID: ed84bb152ee3 | ||
Revises: 4ec629449867 | ||
Create Date: 2024-08-21 11:23:11.330243 | ||
""" | ||
|
||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "ed84bb152ee3" | ||
down_revision = "4ec629449867" | ||
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("default_next_page_id", sa.UUID(), nullable=True)) | ||
batch_op.create_foreign_key( | ||
batch_op.f("fk_page_default_next_page_id_page"), "page", ["default_next_page_id"], ["page_id"] | ||
) | ||
|
||
# ### 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_constraint(batch_op.f("fk_page_default_next_page_id_page"), type_="foreignkey") | ||
batch_op.drop_column("default_next_page_id") | ||
|
||
# ### end Alembic commands ### |
32 changes: 32 additions & 0 deletions
32
app/db/migrations/versions/~2024_08_21_1528-117417bed885_.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: 117417bed885 | ||
Revises: ed84bb152ee3 | ||
Create Date: 2024-08-21 15:28:58.583369 | ||
""" | ||
|
||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "117417bed885" | ||
down_revision = "ed84bb152ee3" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table("lizt", schema=None) as batch_op: | ||
batch_op.add_column(sa.Column("title", sa.String(), nullable=True)) | ||
|
||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table("lizt", schema=None) as batch_op: | ||
batch_op.drop_column("title") | ||
|
||
# ### 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
Oops, something went wrong.