-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added scheduled_start_time and scheduled_end_time to CommitteeMeeting
- Loading branch information
1 parent
0d073ef
commit bab01fc
Showing
3 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
migrations/versions/33e499db410_add_scheduled_start_time_and_actual_end_.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 @@ | ||
"""Add scheduled_start_time and actual_end_time to CommitteeMeeting | ||
Revision ID: 33e499db410 | ||
Revises: e02ab1542a | ||
Create Date: 2024-07-15 09:38:43.690415 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '33e499db410' | ||
down_revision = 'e02ab1542a' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('event', sa.Column('scheduled_end_time', sa.Time(timezone=True), nullable=True)) | ||
op.add_column('event', sa.Column('scheduled_start_time', sa.Time(timezone=True), nullable=True)) | ||
op.alter_column('user', 'fs_uniquifier', | ||
existing_type=sa.VARCHAR(length=64), | ||
nullable=True, | ||
existing_server_default=sa.text("''::character varying")) | ||
### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column('user', 'fs_uniquifier', | ||
existing_type=sa.VARCHAR(length=64), | ||
nullable=False, | ||
existing_server_default=sa.text("''::character varying")) | ||
op.drop_column('event', 'scheduled_start_time') | ||
op.drop_column('event', 'scheduled_end_time') | ||
### 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