Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed duplicate (and incorrect) upgrade script.

  • Loading branch information...
commit 1c5b6b835b645141214a482ae075e2760d0d024c 1 parent 65bdca7
@jacobian jacobian authored
Showing with 0 additions and 16 deletions.
  1. +0 −16 django_website/upgrade/upgrade-aggregator-app.sql
View
16 django_website/upgrade/upgrade-aggregator-app.sql
@@ -1,16 +0,0 @@
-BEGIN;
-INSERT INTO aggregator_feedtype (name, slug, can_self_add)
- VALUES ('Blog feed', 'feed', true);
-ALTER TABLE aggregator_feeds
- ADD COLUMN feed_type_id INTEGER NULL
- REFERENCES aggregator_feedtype (id) DEFERRABLE INITIALLY DEFERRED;
-UPDATE aggregator_feeds
- SET feed_type_id = (SELECT id FROM aggregator_feedtype WHERE slug = 'feed');
-COMMIT;
-
--- Can't alter the column in the same transaction as inserting data pointing to it.
-
-BEGIN;
-ALTER TABLE aggregator_feeds ALTER COLUMN feed_type_id SET NOT NULL;
-COMMIT;
-
Please sign in to comment.
Something went wrong with that request. Please try again.