Avoid having to update all action.circulation rows!
authorDan Scott <dan@coffeecode.net>
Thu, 21 Nov 2019 19:58:07 +0000 (14:58 -0500)
committerDan Scott <dan@coffeecode.net>
Fri, 3 Jan 2020 19:31:28 +0000 (14:31 -0500)
Signed-off-by: Dan Scott <dan@coffeecode.net>
Open-ILS/src/sql/Pg/version-upgrade/3.1.5-3.2.0-upgrade-db.sql

index bc276b0..8a9940b 100644 (file)
@@ -2159,13 +2159,13 @@ SELECT evergreen.upgrade_deps_block_check('1123', :eg_version);
     ADD column max_auto_renewals INTEGER;
 
     ALTER TABLE action.circulation
-    ADD column auto_renewal BOOLEAN;
+    ADD column auto_renewal BOOLEAN DEFAULT FALSE NOT NULL;
 
     ALTER TABLE action.circulation
     ADD column auto_renewal_remaining INTEGER;
 
     ALTER TABLE action.aged_circulation
-    ADD column auto_renewal BOOLEAN;
+    ADD column auto_renewal BOOLEAN DEFAULT FALSE NOT NULL;
 
     ALTER TABLE action.aged_circulation
     ADD column auto_renewal_remaining INTEGER;