* [story#66940] add zt_sqlbuilder sql.

This commit is contained in:
qixinzhi
2024-09-10 09:57:15 +08:00
committed by 代婷婷
parent abb9ab9818
commit 5ff845fb9b
2 changed files with 10 additions and 2 deletions
-1
View File
@@ -1,7 +1,6 @@
ALTER TABLE `zt_workflow` ADD `belong` varchar(50) NOT NULL DEFAULT '' AFTER `buildin`;
ALTER TABLE `zt_pivot` ADD `mode` enum('text', 'builder') not NULL default 'builder' AFTER `driver`;
ALTER TABLE `zt_pivot` ADD `builder` mediumtext AFTER `sql`;
UPDATE `zt_pivot` SET `mode` = 'text';
ALTER TABLE zt_dimension ADD `acl` enum('open','private') NOT NULL DEFAULT 'open' AFTER `desc`;
+10 -1
View File
@@ -15429,7 +15429,6 @@ CREATE TABLE IF NOT EXISTS `zt_pivot` (
`acl` enum('open','private') NOT NULL DEFAULT 'open',
`whitelist` text NULL,
`sql` mediumtext NULL,
`builder` mediumtext NULL,
`fields` mediumtext NULL,
`langs` mediumtext NULL,
`vars` mediumtext NULL,
@@ -15449,6 +15448,16 @@ CREATE TABLE IF NOT EXISTS `zt_pivot` (
CREATE INDEX `dimension` ON `zt_pivot` (`dimension`);
CREATE INDEX `group` ON `zt_pivot` (`group`);
-- DROP TABLE IF EXISTS `zt_sqlbuilder`;
CREATE TABLE IF NOT EXISTS `zt_sqlbuilder` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`objectID` mediumint(8) NOT NULL,
`objectType` varchar(50) NOT NULL,
`sql` text NULL,
`setting` text NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- DROP TABLE IF EXISTS `zt_pivotdrill`;
CREATE TABLE `zt_pivotdrill` (
`pivot` mediumint NOT NULL,