-
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
1 parent
fe08b92
commit ca179b9
Showing
10 changed files
with
216 additions
and
2 deletions.
There are no files selected for viewing
124 changes: 124 additions & 0 deletions
124
app/db/migrations/versions/~2024_10_18_0344-ca6ccf18956b_.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,124 @@ | ||
"""empty message | ||
Revision ID: ca6ccf18956b | ||
Revises: da30746cec39 | ||
Create Date: 2024-10-18 03:44:16.320217 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import postgresql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'ca6ccf18956b' | ||
down_revision = 'da30746cec39' | ||
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('section', postgresql.JSON(none_as_null=True, astext_type=sa.Text()), nullable=True)) | ||
|
||
with op.batch_alter_table('round', schema=None) as batch_op: | ||
batch_op.alter_column('application_reminder_sent', | ||
existing_type=sa.BOOLEAN(), | ||
server_default=None, | ||
existing_nullable=False) | ||
batch_op.alter_column('reference_contact_page_over_email', | ||
existing_type=sa.BOOLEAN(), | ||
server_default=None, | ||
existing_nullable=False) | ||
batch_op.alter_column('support_times', | ||
existing_type=sa.VARCHAR(), | ||
server_default=None, | ||
existing_nullable=False) | ||
batch_op.alter_column('support_days', | ||
existing_type=sa.VARCHAR(), | ||
server_default=None, | ||
existing_nullable=False) | ||
batch_op.alter_column('project_name_field_id', | ||
existing_type=sa.VARCHAR(), | ||
server_default=None, | ||
existing_nullable=False) | ||
batch_op.alter_column('all_uploaded_documents_section_available', | ||
existing_type=sa.BOOLEAN(), | ||
server_default=None, | ||
existing_nullable=False) | ||
batch_op.alter_column('application_fields_download_available', | ||
existing_type=sa.BOOLEAN(), | ||
server_default=None, | ||
existing_nullable=False) | ||
batch_op.alter_column('display_logo_on_pdf_exports', | ||
existing_type=sa.BOOLEAN(), | ||
server_default=None, | ||
existing_nullable=False) | ||
batch_op.alter_column('mark_as_complete_enabled', | ||
existing_type=sa.BOOLEAN(), | ||
server_default=None, | ||
existing_nullable=False) | ||
batch_op.alter_column('is_expression_of_interest', | ||
existing_type=sa.BOOLEAN(), | ||
server_default=None, | ||
existing_nullable=False) | ||
batch_op.alter_column('section_base_path', | ||
existing_type=sa.INTEGER(), | ||
server_default=sa.text("nextval('section_base_path_seq')"), | ||
existing_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.alter_column('section_base_path', | ||
existing_type=sa.INTEGER(), | ||
server_default=sa.text("nextval('section_base_path_seq'::regclass)"), | ||
existing_nullable=True) | ||
batch_op.alter_column('is_expression_of_interest', | ||
existing_type=sa.BOOLEAN(), | ||
server_default=sa.text('false'), | ||
existing_nullable=False) | ||
batch_op.alter_column('mark_as_complete_enabled', | ||
existing_type=sa.BOOLEAN(), | ||
server_default=sa.text('false'), | ||
existing_nullable=False) | ||
batch_op.alter_column('display_logo_on_pdf_exports', | ||
existing_type=sa.BOOLEAN(), | ||
server_default=sa.text('false'), | ||
existing_nullable=False) | ||
batch_op.alter_column('application_fields_download_available', | ||
existing_type=sa.BOOLEAN(), | ||
server_default=sa.text('false'), | ||
existing_nullable=False) | ||
batch_op.alter_column('all_uploaded_documents_section_available', | ||
existing_type=sa.BOOLEAN(), | ||
server_default=sa.text('false'), | ||
existing_nullable=False) | ||
batch_op.alter_column('project_name_field_id', | ||
existing_type=sa.VARCHAR(), | ||
server_default=sa.text("''::character varying"), | ||
existing_nullable=False) | ||
batch_op.alter_column('support_days', | ||
existing_type=sa.VARCHAR(), | ||
server_default=sa.text("''::character varying"), | ||
existing_nullable=False) | ||
batch_op.alter_column('support_times', | ||
existing_type=sa.VARCHAR(), | ||
server_default=sa.text("''::character varying"), | ||
existing_nullable=False) | ||
batch_op.alter_column('reference_contact_page_over_email', | ||
existing_type=sa.BOOLEAN(), | ||
server_default=sa.text('false'), | ||
existing_nullable=False) | ||
batch_op.alter_column('application_reminder_sent', | ||
existing_type=sa.BOOLEAN(), | ||
server_default=sa.text('false'), | ||
existing_nullable=False) | ||
|
||
with op.batch_alter_table('page', schema=None) as batch_op: | ||
batch_op.drop_column('section') | ||
|
||
# ### 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"metadata": {}, | ||
"startPage": "/first-page", | ||
"pages": [ | ||
{ | ||
"title": "First page", | ||
"path": "/first-page", | ||
"components": [], | ||
"next": [ | ||
{ | ||
"path": "/second-page" | ||
} | ||
], | ||
"section": "aucbfI" | ||
}, | ||
{ | ||
"path": "/second-page", | ||
"title": "Second page", | ||
"components": [ | ||
{ | ||
"name": "sBMuNR", | ||
"options": {}, | ||
"type": "TextField", | ||
"title": "Your name" | ||
} | ||
], | ||
"next": [ | ||
{ | ||
"path": "/summary" | ||
} | ||
], | ||
"section": "vJLJeJ" | ||
}, | ||
{ | ||
"title": "Summary", | ||
"path": "/summary", | ||
"controller": "./pages/summary.js", | ||
"components": [] | ||
} | ||
], | ||
"lists": [], | ||
"sections": [ | ||
{ | ||
"name": "aucbfI", | ||
"title": "Section 1", | ||
"hideTitle": false | ||
}, | ||
{ | ||
"name": "vJLJeJ", | ||
"title": "Section 2", | ||
"hideTitle": false | ||
} | ||
], | ||
"conditions": [], | ||
"fees": [], | ||
"outputs": [], | ||
"version": 2, | ||
"skipSummary": false, | ||
"feeOptions": {}, | ||
"markAsComplete": false, | ||
"name":"section" | ||
} |
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