mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 17:01:35 -05:00
Add queue name to service table.
Set queue name when creating the service
This commit is contained in:
26
migrations/versions/0010_add_queue_name_to_service.py
Normal file
26
migrations/versions/0010_add_queue_name_to_service.py
Normal file
@@ -0,0 +1,26 @@
|
||||
"""empty message
|
||||
|
||||
Revision ID: 0010_add_queue_name_to_service
|
||||
Revises: 0009_unique_service_to_key_name
|
||||
Create Date: 2016-01-27 13:53:34.717916
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
|
||||
revision = '0010_add_queue_name_to_service'
|
||||
down_revision = '0009_unique_service_to_key_name'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
def upgrade():
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('services', sa.Column('queue_name', postgresql.UUID(as_uuid=True), nullable=True))
|
||||
### end Alembic commands ###
|
||||
|
||||
def downgrade():
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('services', 'queue_name')
|
||||
### end Alembic commands ###
|
||||
Reference in New Issue
Block a user