Skip to content

Commit bdb57df

Browse files
committed
Adding Ad-Hoc to model
1 parent bc4ab00 commit bdb57df

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

conditional/models/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class CommitteeMeeting(db.Model):
5656
__tablename__ = 'committee_meetings'
5757
id = Column(Integer, primary_key=True)
5858
committee = Column(Enum('Evaluations', 'History', 'Social', 'Opcomm',
59-
'R&D', 'House Improvements', 'Financial', 'Chairman', name="committees_enum"),
59+
'R&D', 'House Improvements', 'Financial', 'Chairman', 'Ad-Hoc', name="committees_enum"),
6060
nullable=False)
6161
timestamp = Column(DateTime, nullable=False)
6262
approved = Column(Boolean, nullable=False)
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
"""ad_hoc
2+
3+
Revision ID: 3eaae92ce6b3
4+
Revises: 4ac8ff82410a
5+
Create Date: 2019-09-06 15:32:42.472975
6+
7+
"""
8+
9+
# revision identifiers, used by Alembic.
10+
from alembic.ddl import postgresql
11+
12+
revision = '3eaae92ce6b3'
13+
down_revision = '4ac8ff82410a'
14+
15+
from alembic import op
16+
import sqlalchemy as sa
17+
from sqlalchemy.dialects import postgresql
18+
19+
20+
def upgrade():
21+
op.alter_column('committee_meetings', 'committee',
22+
existing_type=postgresql.ENUM('Evaluations', 'History', 'Social', 'Opcomm',
23+
'R&D', 'House Improvements', 'Financial', 'Chairman', 'Ad-Hoc', name="committees_enum"),
24+
nullable=False)
25+
26+
27+
def downgrade():
28+
op.alter_column('committee_meetings', 'committee',
29+
existing_type=postgresql.Enum('Evaluations', 'History', 'Social', 'Opcomm',
30+
'R&D', 'House Improvements', 'Financial', 'Chairman', name="committees_enum"),
31+
nullable=False)

0 commit comments

Comments
 (0)