Skip to content

Commit

Permalink
Merge 5ef3741 into 8f1d484
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiago Jobson committed Sep 5, 2020
2 parents 8f1d484 + 5ef3741 commit 8a2493f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Expand Up @@ -21,7 +21,8 @@ def upgrade():
op.add_column('users', sa.Column('active', sa.Boolean(), nullable=True))
op.drop_column('users', 'passwd')
op.execute("INSERT into groups values (10, 'newbie', 'Newbie', 10)")
op.execute("INSERT into users_groups values (95, 1)")
# NOTE: Commented out due to issue #38
# op.execute("INSERT into users_groups values (95, 1)")
op.execute("UPDATE users set active=True where id=95")
# ### end Alembic commands ###

Expand Down
Expand Up @@ -21,15 +21,17 @@ def upgrade():
op.drop_table('wikicomment')
op.create_index(op.f('ix_tags_project_id'), 'tags', ['project_id'], unique=False)
op.create_index(op.f('ix_tags_value'), 'tags', ['value'], unique=False)
op.drop_index('public_tags_project_id0_idx', table_name='tags')
op.drop_index('public_tags_value1_idx', table_name='tags')
# NOTE: Commented out due to issues #10 #38
# op.drop_index('public_tags_project_id0_idx', table_name='tags')
# op.drop_index('public_tags_value1_idx', table_name='tags')
### end Alembic commands ###


def downgrade():
### commands auto generated by Alembic - please adjust! ###
op.create_index('public_tags_value1_idx', 'tags', ['value'], unique=False)
op.create_index('public_tags_project_id0_idx', 'tags', ['project_id'], unique=False)
# NOTE: Commented out due to issues #10 #38
# op.create_index('public_tags_value1_idx', 'tags', ['value'], unique=False)
# op.create_index('public_tags_project_id0_idx', 'tags', ['project_id'], unique=False)
op.drop_index(op.f('ix_tags_value'), table_name='tags')
op.drop_index(op.f('ix_tags_project_id'), table_name='tags')
op.create_table('wikicomment',
Expand Down

0 comments on commit 8a2493f

Please sign in to comment.