Permalink
Browse files

Tweak interest_count schema creation.

  • Loading branch information...
1 parent b2aa34b commit 262069b2310e7adb87dd9b3ecbc36b7bbb3f32dc @dracos dracos committed Feb 21, 2013
@@ -1,6 +1,6 @@
begin;
ALTER table problem
- ADD COLUMN interest_count integer;
+ ADD COLUMN interest_count integer DEFAULT 0;
commit;
@@ -1,9 +0,0 @@
-BEGIN;
-
- ALTER TABLE problem
- ALTER COLUMN interest_count SET DEFAULT 0;
-
- UPDATE problem SET interest_count = 0
- WHERE interest_count IS NULL;
-
-COMMIT;

0 comments on commit 262069b

Please sign in to comment.