Models and migrations for requests
This commit is contained in:
26
alembic/versions/ff1c9c02fa61_enable_uuid_extension.py
Normal file
26
alembic/versions/ff1c9c02fa61_enable_uuid_extension.py
Normal file
@@ -0,0 +1,26 @@
|
||||
"""enable uuid extension
|
||||
|
||||
Revision ID: ff1c9c02fa61
|
||||
Revises:
|
||||
Create Date: 2018-07-23 14:54:05.422286
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'ff1c9c02fa61'
|
||||
down_revision = None
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
connection = op.get_bind()
|
||||
connection.execute('CREATE EXTENSION IF NOT EXISTS "uuid-ossp"')
|
||||
|
||||
|
||||
def downgrade():
|
||||
connection = op.get_bind()
|
||||
connection.execute('DROP EXTENSION IF EXISTS "uuid-ossp"')
|
Reference in New Issue
Block a user