-
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.
fix add edit round and update test data
- Loading branch information
1 parent
17f6c19
commit 9fdd317
Showing
14 changed files
with
255 additions
and
77 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
110 changes: 110 additions & 0 deletions
110
app/db/migrations/versions/~2024_10_08_1656-8d6f8ec14e53_.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,110 @@ | ||
"""empty message | ||
Revision ID: 8d6f8ec14e53 | ||
Revises: 5e2362840f43 | ||
Create Date: 2024-10-08 16:56:32.064596 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '8d6f8ec14e53' | ||
down_revision = '5e2362840f43' | ||
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.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) | ||
|
||
# ### 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('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) | ||
|
||
# ### 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,5 +16,5 @@ class UnitTestConfig(Config): | |
|
||
SQLALCHEMY_DATABASE_URI = getenv( | ||
"DATABASE_URL_UNIT_TEST", | ||
"postgresql://postgres:[email protected]:5432/fab_unit_test", # pragma: allowlist secret | ||
"postgresql://postgres:password@localhost:5435/fund_builder", # pragma: allowlist secret | ||
) |
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.