Skip to content

Commit

Permalink
TkTech's suggestion - some people have manually removed these for per…
Browse files Browse the repository at this point in the history
…formance.
  • Loading branch information
David Read committed Mar 18, 2019
1 parent e5dd58b commit f1d6aed
Showing 1 changed file with 6 additions and 6 deletions.
Expand Up @@ -4,11 +4,11 @@
def upgrade(migrate_engine):
migrate_engine.execute(
'''
ALTER TABLE "package_extra_revision"
DROP CONSTRAINT package_extra_revision_continuity_id_fkey;
ALTER TABLE "group_extra_revision"
DROP CONSTRAINT group_extra_revision_continuity_id_fkey;
DELETE FROM "package_extra" WHERE state='deleted';
DELETE FROM "group_extra" WHERE state='deleted';
ALTER TABLE "package_extra_revision"
DROP CONSTRAINT IF EXISTS package_extra_revision_continuity_id_fkey;
ALTER TABLE "group_extra_revision"
DROP CONSTRAINT IF EXISTS group_extra_revision_continuity_id_fkey;
DELETE FROM "package_extra" WHERE state='deleted';
DELETE FROM "group_extra" WHERE state='deleted';
'''
)

0 comments on commit f1d6aed

Please sign in to comment.