* Revert sql.

This commit is contained in:
sgm0422
2020-07-24 09:25:22 +08:00
parent d4d0453a70
commit f4c3b232b6
3 changed files with 4 additions and 0 deletions
+1
View File
@@ -388,6 +388,7 @@ CREATE TABLE `zt_file` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `zt_group` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`program` mediumint(8) unsigned NOT NULL DEFAULT 0,
`name` char(30) NOT NULL,
`role` char(30) NOT NULL DEFAULT '',
`desc` char(255) NOT NULL DEFAULT '',
+2
View File
@@ -4,3 +4,5 @@ DELETE FROM `zt_grouppriv` WHERE `module` = 'api' AND `method` = 'getModel';
DELETE FROM `zt_grouppriv` WHERE `module` = 'api' AND `method` = 'sql';
ALTER TABLE `zt_jenkins` CHANGE `password` `password` varchar(255) COLLATE 'utf8_general_ci' NOT NULL AFTER `account`;
ALTER TABLE `zt_group` ADD `program` mediumint(8) unsigned NOT NULL DEFAULT 0 AFTER `id`;
+1
View File
@@ -403,6 +403,7 @@ CREATE TABLE IF NOT EXISTS `zt_file` (
-- DROP TABLE IF EXISTS `zt_group`;
CREATE TABLE IF NOT EXISTS `zt_group` (
`id` mediumint(8) unsigned NOT NULL auto_increment,
`program` mediumint(8) unsigned NOT NULL DEFAULT 0,
`name` char(30) NOT NULL,
`role` char(30) NOT NULL default '',
`desc` char(255) NOT NULL default '',