Skip to content

Commit

Permalink
Remove unnecessary tables
Browse files Browse the repository at this point in the history
In previous work the need for these tables was removed, however
migrations were not provided.  authorization_group_role was removed in a
later PR, but authorization_group and authorization_group_user were not.

This PR just deletes the tables if they still exist.
  • Loading branch information
rossjones committed Jun 27, 2018
1 parent 0332829 commit 55e9c01
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ckan/migration/versions/087_remove_old_authorization_tables.py
@@ -0,0 +1,10 @@
# encoding: utf-8


def upgrade(migrate_engine):
migrate_engine.execute(
'''
DROP TABLE IF EXISTS "authorization_group_user";
DROP TABLE IF EXISTS "authorization_group";
'''
)

0 comments on commit 55e9c01

Please sign in to comment.