gest366/update/update_2.0.6.sql

30 lines
1.1 KiB
MySQL
Raw Normal View History

2021-02-24 20:40:04 +00:00
CREATE TABLE `zz_modules_add` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`module_dir_from` varchar(255) NOT NULL,
`module_dir_to` varchar(255) NOT NULL,
`script` varchar(255) NOT NULL,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_by` int(11) NOT NULL,
`created_by` int(11) NOT NULL ,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `zz_modules_add_button` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`module_dir_from` varchar(255) NOT NULL,
`module_dir_to` varchar(255) NOT NULL,
`script` varchar(255) NOT NULL,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_by` int(11) NOT NULL,
`created_by` int(11) NOT NULL ,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
update zz_modules set enabled=0 where name='Opzioni generali';