Fix campi idmodule in zz_plugins

Ripristino della condizione NOT NULL per i campi idmodule in zz_plugins.
This commit is contained in:
Thomas Zilio 2018-01-13 16:18:27 +01:00
parent 871c05f501
commit 66b20731e0
1 changed files with 1 additions and 1 deletions

View File

@ -717,7 +717,7 @@ UPDATE `zz_group_module` SET `default` = 1;
UPDATE `zz_widgets` SET `more_link` = REPLACE(TRIM(`more_link`), 'templates/pdfgen.php', 'pdfgen.php');
-- Nuova struttura per i plugins
ALTER TABLE `zz_plugins` ADD `title` varchar(255) NOT NULL AFTER `name`, CHANGE `idmodule_from` `idmodule_from` int(11), CHANGE `idmodule_to` `idmodule_to` int(11),
ALTER TABLE `zz_plugins` ADD `title` varchar(255) NOT NULL AFTER `name`,
ADD `directory` varchar(50) NOT NULL AFTER `script`, ADD `options` text AFTER `script`, ADD `options2` text AFTER `script`, ADD `version` varchar(15) NOT NULL AFTER `script`, ADD `compatibility` varchar(1000) NOT NULL AFTER `script`, ADD `order` int(11) NOT NULL AFTER `script`, ADD `default` boolean NOT NULL DEFAULT 0 AFTER `script`, ADD `enabled` boolean NOT NULL DEFAULT 1 AFTER `script`;
UPDATE `zz_plugins` SET `name` = 'Serial' WHERE `name` = 'Lotti';