Fix: assetVersionTag table column defaults
This commit is contained in:
parent
88ef9a412e
commit
5c6cfbfc78
3 changed files with 15 additions and 3 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
- Added configurable sales tax. (Tiffany Patterson / Elite Marketing)
|
- Added configurable sales tax. (Tiffany Patterson / Elite Marketing)
|
||||||
- change: made Text::Aspell optional, nullifying spellchecker if not present
|
- change: made Text::Aspell optional, nullifying spellchecker if not present
|
||||||
- Fixed a bug where logging in/out would cause a blank page display.
|
- Fixed a bug where logging in/out would cause a blank page display.
|
||||||
|
- Fix: Version tags could not be create()d because no default values set.
|
||||||
|
|
||||||
7.1.2
|
7.1.2
|
||||||
- Fixed a bug that caused workflows to fail if collaboration systems and
|
- Fixed a bug that caused workflows to fail if collaboration systems and
|
||||||
|
|
|
||||||
|
|
@ -1152,9 +1152,9 @@ CREATE TABLE `assetVersionTag` (
|
||||||
`commitDate` bigint(20) NOT NULL default '0',
|
`commitDate` bigint(20) NOT NULL default '0',
|
||||||
`committedBy` varchar(22) binary NOT NULL default '',
|
`committedBy` varchar(22) binary NOT NULL default '',
|
||||||
`isLocked` int(11) NOT NULL default '0',
|
`isLocked` int(11) NOT NULL default '0',
|
||||||
`lockedBy` varchar(22) binary NOT NULL,
|
`lockedBy` varchar(22) binary NOT NULL default '',
|
||||||
`groupToUse` varchar(22) binary NOT NULL,
|
`groupToUse` varchar(22) binary NOT NULL default '',
|
||||||
`workflowId` varchar(22) binary NOT NULL,
|
`workflowId` varchar(22) binary NOT NULL default '',
|
||||||
`workflowInstanceId` varchar(22) binary default NULL,
|
`workflowInstanceId` varchar(22) binary default NULL,
|
||||||
`comments` text,
|
`comments` text,
|
||||||
PRIMARY KEY (`tagId`)
|
PRIMARY KEY (`tagId`)
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ my $session = start(); # this line required
|
||||||
|
|
||||||
commerceSalesTax($session);
|
commerceSalesTax($session);
|
||||||
createDictionaryStorage($session);
|
createDictionaryStorage($session);
|
||||||
|
fixAssetVersionTag($session);
|
||||||
|
|
||||||
finish($session); # this line required
|
finish($session); # this line required
|
||||||
|
|
||||||
|
|
@ -58,6 +59,16 @@ sub createDictionaryStorage {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------
|
||||||
|
sub fixAssetVersionTag {
|
||||||
|
my $session = shift;
|
||||||
|
print "\tFixing assetVersionTag database table.\n" unless ($quiet);
|
||||||
|
|
||||||
|
$session->db->write("alter table assetVersionTag alter lockedBy set default ''");
|
||||||
|
$session->db->write("alter table assetVersionTag alter groupToUse set default ''");
|
||||||
|
$session->db->write("alter table assetVersionTag alter workflowId set default ''");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# ---- DO NOT EDIT BELOW THIS LINE ----
|
# ---- DO NOT EDIT BELOW THIS LINE ----
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue