Freeform layout has to clear left,top,bottom,right

This commit is contained in:
Isaac Connor 2017-11-01 11:53:45 -04:00
parent 445fbb06d6
commit b1cb83c8ff
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ EXECUTE stmt;
SET @s = ( SELECT IF(
(SELECT COUNT(*) FROM MontageLayouts WHERE Name='Freeform') > 0,
"SELECT 'Freeform already in layouts'",
'INSERT INTO MontageLayouts (`Name`,`Positions`) VALUES (\'Freeform\', \'{"default":{"float":"left","position":"relative"}}\');'
'INSERT INTO MontageLayouts (`Name`,`Positions`) VALUES (\'Freeform\', \'{"default":{"float":"left","position":"relative","left":"0px","right":"0px","top":"0px","bottom":"0px"}}\');'
) );
PREPARE stmt FROM @s;
EXECUTE stmt;