chore: 打包数据库去除表名绑定

This commit is contained in:
TsMask
2024-03-19 21:06:07 +08:00
parent 7e8360dcb4
commit 5f8bd6bac1
31 changed files with 362 additions and 362 deletions

View File

@@ -1,6 +1,6 @@
SET FOREIGN_KEY_CHECKS=0;
CREATE TABLE IF NOT EXISTS `omc_db`.`sys_dept` (
CREATE TABLE IF NOT EXISTS `sys_dept` (
`dept_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '部门id',
`parent_id` bigint(20) NULL DEFAULT 0 COMMENT '父部门id 默认0',
`ancestors` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '祖级列表',
@@ -21,7 +21,7 @@ CREATE TABLE IF NOT EXISTS `omc_db`.`sys_dept` (
-- -- add default dept
INSERT
IGNORE INTO `omc_db`.`sys_dept` (
IGNORE INTO `sys_dept` (
`dept_id`,
`parent_id`,
`ancestors`,
@@ -55,7 +55,7 @@ VALUES (
);
INSERT
IGNORE INTO `omc_db`.`sys_dept` (
IGNORE INTO `sys_dept` (
`dept_id`,
`parent_id`,
`ancestors`,
@@ -89,7 +89,7 @@ VALUES (
);
-- for cn/en locale
UPDATE `omc_db`.`sys_dept`
UPDATE `sys_dept`
SET
`parent_id` = 0,
`ancestors` = '0',
@@ -106,7 +106,7 @@ SET
`update_time` = 0
WHERE `dept_id` = 100;
UPDATE `omc_db`.`sys_dept`
UPDATE `sys_dept`
SET
`parent_id` = 100,
`ancestors` = '0,100',