mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-18 13:38:53 -04:00
Ensure the relationship between Notification and ScheduledNotification is one-to-one.
Update db script with the right number
This commit is contained in:
@@ -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')
|
||||
)
|
||||
Reference in New Issue
Block a user