Skip to content

Commit

Permalink
Add PR to Committee Attendance
Browse files Browse the repository at this point in the history
  • Loading branch information
jabbate19 committed Sep 7, 2022
1 parent e442fc5 commit 6a674d8
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conditional/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ class CommitteeMeeting(db.Model):
__tablename__ = 'committee_meetings'
id = Column(Integer, primary_key=True)
committee = Column(Enum('Evaluations', 'History', 'Social', 'Opcomm',
'R&D', 'House Improvements', 'Financial', 'Chairman', 'Ad-Hoc', name="committees_enum"),
'R&D', 'House Improvements', 'Financial',
'Public Relations', 'Chairman', 'Ad-Hoc', name="committees_enum"),
nullable=False)
timestamp = Column(DateTime, nullable=False)
approved = Column(Boolean, nullable=False)
Expand Down
1 change: 1 addition & 0 deletions conditional/templates/attendance_cm.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ <h3 class="page-title">Meeting Attendance</h3>
<option value="Opcomm">OpComm</option>
<option value="History">History</option>
<option value="Social">Social</option>
<option value="Public Relations">Public Relations</option>
</select>
</div>
</div>
Expand Down
29 changes: 29 additions & 0 deletions migrations/versions/757e18146d16_add_pr.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
"""Add PR
Revision ID: 757e18146d16
Revises: 3eaae92ce6b3
Create Date: 2022-09-07 12:13:17.966970
"""

# revision identifiers, used by Alembic.
revision = '757e18146d16'
down_revision = '3eaae92ce6b3'

from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql


def upgrade():
op.alter_column('committee_meetings', 'committee',
existing_type=postgresql.ENUM('Evaluations', 'History', 'Social', 'Opcomm',
'R&D', 'House Improvements', 'Financial', 'Public Relations', 'Chairman', 'Ad-Hoc', name="committees_enum"),
nullable=False)


def downgrade():
op.alter_column('committee_meetings', 'committee',
existing_type=postgresql.Enum('Evaluations', 'History', 'Social', 'Opcomm',
'R&D', 'House Improvements', 'Financial', 'Chairman', 'Ad-Hoc', name="committees_enum"),
nullable=False)

0 comments on commit 6a674d8

Please sign in to comment.