mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
Add sms notifications from a service to a queue.
This commit is contained in:
@@ -18,6 +18,8 @@ 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))
|
||||
op.get_bind()
|
||||
op.execute('update services set queue_name = (SELECT uuid_in(md5(random()::text || now()::text)::cstring))')
|
||||
### end Alembic commands ###
|
||||
|
||||
def downgrade():
|
||||
|
||||
Reference in New Issue
Block a user