-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split out
requirements
field and rename funds
This becomes three fields: - `equipment_required` - `funding_required` ("Costs") - `additional_info` Rename `funds` to `installation_funding`. Add "Costs" to the edit page.
- Loading branch information
1 parent
897bbd2
commit baa59fe
Showing
7 changed files
with
157 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
"""CfP requirements | ||
Revision ID: 5e48dc411113 | ||
Revises: 2f028aff5d58 | ||
Create Date: 2024-01-20 17:18:18.893097 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '5e48dc411113' | ||
down_revision = '2f028aff5d58' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('proposal', sa.Column('equipment_required', sa.String(), nullable=True)) | ||
op.add_column('proposal', sa.Column('funding_required', sa.String(), nullable=True)) | ||
op.add_column('proposal', sa.Column('additional_info', sa.String(), nullable=True)) | ||
op.add_column('proposal', sa.Column('installation_funding', sa.String(), nullable=True)) | ||
op.drop_column('proposal', 'requirements') | ||
op.drop_column('proposal', 'funds') | ||
op.add_column('proposal_version', sa.Column('equipment_required', sa.String(), autoincrement=False, nullable=True)) | ||
op.add_column('proposal_version', sa.Column('funding_required', sa.String(), autoincrement=False, nullable=True)) | ||
op.add_column('proposal_version', sa.Column('additional_info', sa.String(), autoincrement=False, nullable=True)) | ||
op.add_column('proposal_version', sa.Column('installation_funding', sa.String(), autoincrement=False, nullable=True)) | ||
op.drop_column('proposal_version', 'requirements') | ||
op.drop_column('proposal_version', 'funds') | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('proposal_version', sa.Column('funds', sa.VARCHAR(), autoincrement=False, nullable=True)) | ||
op.add_column('proposal_version', sa.Column('requirements', sa.VARCHAR(), autoincrement=False, nullable=True)) | ||
op.drop_column('proposal_version', 'installation_funding') | ||
op.drop_column('proposal_version', 'additional_info') | ||
op.drop_column('proposal_version', 'funding_required') | ||
op.drop_column('proposal_version', 'equipment_required') | ||
op.add_column('proposal', sa.Column('funds', sa.VARCHAR(), autoincrement=False, nullable=True)) | ||
op.add_column('proposal', sa.Column('requirements', sa.VARCHAR(), autoincrement=False, nullable=True)) | ||
op.drop_column('proposal', 'installation_funding') | ||
op.drop_column('proposal', 'additional_info') | ||
op.drop_column('proposal', 'funding_required') | ||
op.drop_column('proposal', 'equipment_required') | ||
# ### 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
Oops, something went wrong.