Bug 16402: (QA followup)

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Tomas Cohen Arazi 2016-05-16 12:36:56 -03:00 committed by Kyle M Hall
parent 74937f9c89
commit 4e1b0e0242
1 changed files with 14 additions and 2 deletions

View File

@ -1,2 +1,14 @@
alter table letter modify column branchcode varchar(10) not null default '';
alter table permissions modify column code varchar(64) not null default '';
ALTER TABLE letter MODIFY COLUMN branchcode varchar(10) NOT NULL DEFAULT '';
ALTER TABLE permissions MODIFY COLUMN code varchar(64) NOT NULL DEFAULT '';
-- $DBversion = "3.23.00.XXX";
-- if(CheckVersion($DBversion)) {
-- $dbh->do(q{
-- ALTER TABLE letter MODIFY COLUMN branchcode varchar(10) NOT NULL DEFAULT ''
-- });
-- $dbh->do(q{
-- ALTER TABLE permissions MODIFY COLUMN code varchar(64) NOT NULL DEFAULT '';
-- });
-- print "Upgrade to $DBversion done (Bug 16402: Fix DB structure to work on MySQL 5.7)\n";
-- SetVersion($DBversion);
-- }