Add sms notifications from a service to a queue.

This commit is contained in:
Rebecca Law
2016-01-27 17:42:05 +00:00
parent daff1c3f53
commit 42a4c8b0b1
10 changed files with 131 additions and 44 deletions

View File

@@ -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():