undo damage from DBIx::DBSchema 0.37_03
authorivan <ivan>
Sat, 9 Jan 2010 08:21:45 +0000 (08:21 +0000)
committerivan <ivan>
Sat, 9 Jan 2010 08:21:45 +0000 (08:21 +0000)
FS/bin/freeside-upgrade

index 49f1df8..97c704c 100755 (executable)
@@ -60,9 +60,14 @@ if (dbdef->table('cust_main')->column('agent_custid') && ! $opt_s) {
 #from 1.3 to 1.4... if not, it needs to be hooked into -upgrade here or
 #you'll lose all the part_svc settings it migrates to part_svc_column
 
-my @statements =
+my @statements = dbdef->sql_update_schema( dbdef_dist(datasrc),
+                                           $dbh,
+                                           { 'nullify_default' => 1, },
+                                         );
+
+@statements = 
   grep { $_ !~ /^CREATE +INDEX +h_queue/i } #useless, holds up queue insertion
-       dbdef->sql_update_schema( dbdef_dist(datasrc), $dbh );
+       @statements;
 
 unless ( driver_name =~ /^mysql/i ) {
   #not necessary under non-mysql, takes forever on big db