Skip to content

Commit 6a674d8

Browse files
committedSep 7, 2022
Add PR to Committee Attendance
1 parent e442fc5 commit 6a674d8

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed
 

‎conditional/models/models.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ 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', 'Ad-Hoc', name="committees_enum"),
59+
'R&D', 'House Improvements', 'Financial',
60+
'Public Relations', 'Chairman', 'Ad-Hoc', name="committees_enum"),
6061
nullable=False)
6162
timestamp = Column(DateTime, nullable=False)
6263
approved = Column(Boolean, nullable=False)

‎conditional/templates/attendance_cm.html

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ <h3 class="page-title">Meeting Attendance</h3>
2323
<option value="Opcomm">OpComm</option>
2424
<option value="History">History</option>
2525
<option value="Social">Social</option>
26+
<option value="Public Relations">Public Relations</option>
2627
</select>
2728
</div>
2829
</div>
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
"""Add PR
2+
3+
Revision ID: 757e18146d16
4+
Revises: 3eaae92ce6b3
5+
Create Date: 2022-09-07 12:13:17.966970
6+
7+
"""
8+
9+
# revision identifiers, used by Alembic.
10+
revision = '757e18146d16'
11+
down_revision = '3eaae92ce6b3'
12+
13+
from alembic import op
14+
import sqlalchemy as sa
15+
from sqlalchemy.dialects import postgresql
16+
17+
18+
def upgrade():
19+
op.alter_column('committee_meetings', 'committee',
20+
existing_type=postgresql.ENUM('Evaluations', 'History', 'Social', 'Opcomm',
21+
'R&D', 'House Improvements', 'Financial', 'Public Relations', 'Chairman', 'Ad-Hoc', name="committees_enum"),
22+
nullable=False)
23+
24+
25+
def downgrade():
26+
op.alter_column('committee_meetings', 'committee',
27+
existing_type=postgresql.Enum('Evaluations', 'History', 'Social', 'Opcomm',
28+
'R&D', 'House Improvements', 'Financial', 'Chairman', 'Ad-Hoc', name="committees_enum"),
29+
nullable=False)

0 commit comments

Comments
 (0)
Please sign in to comment.