"""empty message

Revision ID: 0083_scheduled_notifications
Revises: 0082_add_go_live_template
Create Date: 2017-05-15 12:50:20.041950

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

revision = '0083_scheduled_notifications'
down_revision = '0082_add_go_live_template'


def upgrade():
    op.create_table('scheduled_notifications',
                    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')
                    )
    op.create_index(op.f('ix_scheduled_notifications_notification_id'), 'scheduled_notifications', ['notification_id'],
                    unique=False)


def downgrade():
    op.drop_index(op.f('ix_scheduled_notifications_notification_id'), table_name='scheduled_notifications')
    op.drop_table('scheduled_notifications')

@@ -65,38 +65,45 @@
 ses: 008
-2
+3
 _add_
-go_live_template
+perm_types_and_svc_perm
 %0ACreate 
@@ -297,30 +297,37 @@
 '008
-2
+3
 _add_
-go_live_template
+perm_types_and_svc_perm
 '%0A%0A%0A

Fix db migration conflict