Permalink
Browse files

Removed duplicate (and incorrect) upgrade script.

  • Loading branch information...
1 parent 65bdca7 commit 1c5b6b835b645141214a482ae075e2760d0d024c @jacobian jacobian committed Oct 11, 2010
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;
-

0 comments on commit 1c5b6b8

Please sign in to comment.