Ensure the relationship between Notification and ScheduledNotification is one-to-one.

Update db script with the right number
This commit is contained in:
Rebecca Law
2017-05-16 15:29:31 +01:00
parent 2e078f9fc8
commit 1034762489
3 changed files with 15 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
"""empty message
Revision ID: 0083_scheduled_notifications
Revision ID: 0084_scheduled_notifications
Revises: 0083_add_perm_types_and_svc_perm
Create Date: 2017-05-15 12:50:20.041950
@@ -9,7 +9,7 @@ from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
revision = '0083_scheduled_notifications'
revision = '0084_scheduled_notifications'
down_revision = '0083_add_perm_types_and_svc_perm'
@@ -18,7 +18,6 @@ def upgrade():
sa.Column('id', postgresql.UUID(as_uuid=True), nullable=False),
sa.Column('notification_id', postgresql.UUID(as_uuid=True), nullable=False),
sa.Column('scheduled_for', sa.DateTime(), nullable=False),
sa.Column('pending', sa.Boolean(), nullable=False),
sa.ForeignKeyConstraint(['notification_id'], ['notifications.id'], ),
sa.PrimaryKeyConstraint('id')
)