mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-14 07:54:36 +00:00
Chat: Fix intermediate alembic steps
This commit is contained in:
parent
45c9ba013f
commit
bbf2f54832
@ -26,20 +26,23 @@ def upgrade():
|
||||
sa.Column('description', sa.Text(), nullable=False),
|
||||
sa.Column('password', sa.String(), nullable=False),
|
||||
sa.Column('custom_server', sa.String(), nullable=False),
|
||||
sa.Column('created_by_id', sa.Integer(), nullable=False, index=True),
|
||||
sa.Column('created_by_id', sa.Integer(), nullable=False),
|
||||
sa.Column('created_dt', UTCDateTime(), nullable=False),
|
||||
sa.Column('modified_dt', UTCDateTime(), nullable=True),
|
||||
sa.PrimaryKeyConstraint('id'),
|
||||
sa.UniqueConstraint('jid_node', 'custom_server'),
|
||||
sa.PrimaryKeyConstraint('id', name='chatrooms_pkey'),
|
||||
sa.UniqueConstraint('jid_node', 'custom_server', name='chatrooms_jid_node_custom_server_key'),
|
||||
sa.Index('ix_plugin_chat_chatrooms_created_by_id', 'created_by_id'),
|
||||
schema='plugin_chat')
|
||||
op.create_table('chatroom_events',
|
||||
sa.Column('event_id', sa.Integer(), nullable=False, primary_key=True, index=True,
|
||||
autoincrement=False),
|
||||
sa.Column('chatroom_id', sa.Integer(), nullable=False, primary_key=True, index=True),
|
||||
sa.Column('event_id', sa.Integer(), nullable=False, autoincrement=False),
|
||||
sa.Column('chatroom_id', sa.Integer(), nullable=False),
|
||||
sa.Column('hidden', sa.Boolean(), nullable=False),
|
||||
sa.Column('show_password', sa.Boolean(), nullable=False),
|
||||
sa.ForeignKeyConstraint(['chatroom_id'], ['plugin_chat.chatrooms.id']),
|
||||
sa.PrimaryKeyConstraint('event_id', 'chatroom_id'),
|
||||
sa.ForeignKeyConstraint(['chatroom_id'], ['plugin_chat.chatrooms.id'],
|
||||
name='chatroom_events_chatroom_id_fkey'),
|
||||
sa.PrimaryKeyConstraint('event_id', 'chatroom_id', name='chatroom_events_pkey'),
|
||||
sa.Index('ix_plugin_chat_chatroom_events_event_id', 'event_id'),
|
||||
sa.Index('ix_plugin_chat_chatroom_events_chatroom_id', 'chatroom_id'),
|
||||
schema='plugin_chat')
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user