mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 09:51:11 -05:00
Merged with master.
This commit is contained in:
26
migrations/versions/0008_unique_service_to_key_name.py
Normal file
26
migrations/versions/0008_unique_service_to_key_name.py
Normal file
@@ -0,0 +1,26 @@
|
||||
"""empty message
|
||||
|
||||
Revision ID: 0008_unique_service_to_key_name
|
||||
Revises: 0007_change_to_api_keys
|
||||
Create Date: 2016-01-21 16:14:51.773001
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '0008_unique_service_to_key_name'
|
||||
down_revision = '0007_change_to_api_keys'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
def upgrade():
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
op.create_unique_constraint('uix_service_to_key_name', 'api_key', ['service_id', 'name'])
|
||||
### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_constraint('uix_service_to_key_name', 'api_key', type_='unique')
|
||||
### end Alembic commands ###
|
||||
Reference in New Issue
Block a user