This patch changes the DB structure adding borrower_modifications.extended_attributes
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
--- /dev/null
+ALTER TABLE borrower_modifications ADD COLUMN extended_attributes text DEFAULT NULL AFTER privacy;
+
+-- $DBversion = "16.12.00.XXX";
+-- if ( CheckVersion($DBversion) ) {
+--
+-- $dbh->do( "ALTER TABLE borrower_modifications
+-- ADD COLUMN extended_attributes text DEFAULT NULL
+-- AFTER privacy" );
+-- print "Upgrade to $DBversion done (Bug 8835). Everything is fine.\n";
+--
+-- SetVersion($DBversion);
+-- }
`altcontactphone` varchar(50) DEFAULT NULL,
`smsalertnumber` varchar(50) DEFAULT NULL,
`privacy` int(11) DEFAULT NULL,
`altcontactphone` varchar(50) DEFAULT NULL,
`smsalertnumber` varchar(50) DEFAULT NULL,
`privacy` int(11) DEFAULT NULL,
+ `extended_attributes` text DEFAULT NULL,
PRIMARY KEY (`verification_token`,`borrowernumber`),
KEY `verification_token` (`verification_token`),
KEY `borrowernumber` (`borrowernumber`)
PRIMARY KEY (`verification_token`,`borrowernumber`),
KEY `verification_token` (`verification_token`),
KEY `borrowernumber` (`borrowernumber`)