mirror of
https://github.com/PlayEdu/PlayEdu
synced 2026-02-25 16:36:21 +08:00
优化Ldap的部门同步
This commit is contained in:
@@ -713,6 +713,27 @@ public class MigrationCheck implements CommandLineRunner {
|
||||
""");
|
||||
}
|
||||
});
|
||||
add(
|
||||
new HashMap<>() {
|
||||
{
|
||||
put("table", "ldap_department");
|
||||
put("name", "20231113_15_44_17_ldap_department");
|
||||
put(
|
||||
"sql",
|
||||
"""
|
||||
CREATE TABLE `ldap_department` (
|
||||
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
||||
`uuid` varchar(64) NOT NULL DEFAULT '' COMMENT '唯一特征值',
|
||||
`department_id` int(11) NOT NULL DEFAULT 0 COMMENT '部门ID',
|
||||
`dn` varchar(120) NOT NULL DEFAULT '' COMMENT 'dn',
|
||||
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `unique_uuid` (`uuid`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
""");
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user