fix: make dbinit SQL idempotent to prevent data wipe on re-runs #1

Merged
sagar.patil merged 1 commits from bugfix/hadesSql into main 2026-03-12 07:02:38 +00:00
2 changed files with 108 additions and 192 deletions

View File

@ -19,10 +19,9 @@
-- Table structure for table `access_permissions`
--
use hades_db;
DROP TABLE IF EXISTS `access_permissions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `access_permissions` (
CREATE TABLE IF NOT EXISTS `access_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(250) NOT NULL,
`creation_date` datetime DEFAULT NULL,
@ -77,10 +76,9 @@ DELIMITER ;
-- Table structure for table `access_role_permission_mappings`
--
DROP TABLE IF EXISTS `access_role_permission_mappings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `access_role_permission_mappings` (
CREATE TABLE IF NOT EXISTS `access_role_permission_mappings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`access_role_id` int(11) NOT NULL,
`permission_id` int(11) NOT NULL,
@ -137,10 +135,9 @@ DELIMITER ;
-- Table structure for table `access_role_tag_mappings`
--
DROP TABLE IF EXISTS `access_role_tag_mappings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `access_role_tag_mappings` (
CREATE TABLE IF NOT EXISTS `access_role_tag_mappings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`access_role_id` int(11) NOT NULL,
`tag` varchar(250) NOT NULL,
@ -197,10 +194,9 @@ DELIMITER ;
-- Table structure for table `access_roles`
--
DROP TABLE IF EXISTS `access_roles`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `access_roles` (
CREATE TABLE IF NOT EXISTS `access_roles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` char(25) COLLATE utf8mb4_unicode_ci NOT NULL,
`agency_id` int(11) NOT NULL DEFAULT '-1',
@ -261,10 +257,9 @@ DELIMITER ;
-- Table structure for table `agencies`
--
DROP TABLE IF EXISTS `agencies`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `agencies` (
CREATE TABLE IF NOT EXISTS `agencies` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` char(250) COLLATE utf8mb4_unicode_ci NOT NULL,
`parent_agency_id` int(11) NOT NULL,
@ -369,10 +364,9 @@ DELIMITER ;
-- Table structure for table `agencies_flattened`
--
DROP TABLE IF EXISTS `agencies_flattened`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `agencies_flattened` (
CREATE TABLE IF NOT EXISTS `agencies_flattened` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`agency_id` int(11) NOT NULL,
`name` char(250) COLLATE utf8mb4_unicode_ci NOT NULL,
@ -432,10 +426,9 @@ DELIMITER ;
-- Table structure for table `agencies_id_generator`
--
DROP TABLE IF EXISTS `agencies_id_generator`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `agencies_id_generator` (
CREATE TABLE IF NOT EXISTS `agencies_id_generator` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(250) COLLATE utf8mb4_unicode_ci NOT NULL,
`creation_date` datetime DEFAULT NULL,
@ -490,10 +483,9 @@ DELIMITER ;
-- Table structure for table `app_ips_accesses`
--
DROP TABLE IF EXISTS `app_ips_accesses`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `app_ips_accesses` (
CREATE TABLE IF NOT EXISTS `app_ips_accesses` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app_id` int(11) NOT NULL,
`ipaddress` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
@ -550,10 +542,9 @@ DELIMITER ;
-- Table structure for table `apps`
--
DROP TABLE IF EXISTS `apps`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `apps` (
CREATE TABLE IF NOT EXISTS `apps` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` char(100) COLLATE utf8mb4_unicode_ci NOT NULL,
@ -612,10 +603,9 @@ DELIMITER ;
-- Table structure for table `auth_channel_keys`
--
DROP TABLE IF EXISTS `auth_channel_keys`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_channel_keys` (
CREATE TABLE IF NOT EXISTS `auth_channel_keys` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`auth_channel_id` int(11) NOT NULL,
`key` char(100) COLLATE utf8mb4_unicode_ci NOT NULL,
@ -672,10 +662,9 @@ DELIMITER ;
-- Table structure for table `auth_channels`
--
DROP TABLE IF EXISTS `auth_channels`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_channels` (
CREATE TABLE IF NOT EXISTS `auth_channels` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` char(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`is_deleted` tinyint(1) NOT NULL DEFAULT '0',
@ -731,10 +720,9 @@ DELIMITER ;
-- Table structure for table `auth_provider_metadata`
--
DROP TABLE IF EXISTS `auth_provider_metadata`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_provider_metadata` (
CREATE TABLE IF NOT EXISTS `auth_provider_metadata` (
`user_id` int(11) NOT NULL,
`auth_provider_type_id` int(3) NOT NULL,
`auth_provider_value` char(250) COLLATE utf8mb4_unicode_ci NOT NULL,
@ -793,10 +781,9 @@ DELIMITER ;
-- Table structure for table `auth_provider_metadata_v2`
--
DROP TABLE IF EXISTS `auth_provider_metadata_v2`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_provider_metadata_v2` (
CREATE TABLE IF NOT EXISTS `auth_provider_metadata_v2` (
`user_id` int(11) NOT NULL,
`agency_id` int(11) NOT NULL DEFAULT '-1',
`auth_provider_type_id` int(3) NOT NULL,
@ -900,10 +887,9 @@ DELIMITER ;
-- Table structure for table `auth_provider_types`
--
DROP TABLE IF EXISTS `auth_provider_types`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_provider_types` (
CREATE TABLE IF NOT EXISTS `auth_provider_types` (
`id` int(3) NOT NULL AUTO_INCREMENT,
`name` char(20) COLLATE utf8mb4_unicode_ci NOT NULL,
`is_deleted` tinyint(1) NOT NULL DEFAULT '0',
@ -959,10 +945,9 @@ DELIMITER ;
-- Table structure for table `clients`
--
DROP TABLE IF EXISTS `clients`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `clients` (
CREATE TABLE IF NOT EXISTS `clients` (
`client_id` int(11) NOT NULL,
`name` char(250) COLLATE utf8mb4_unicode_ci NOT NULL,
`alias` varchar(250) COLLATE utf8mb4_unicode_ci NOT NULL,
@ -1028,10 +1013,9 @@ DELIMITER ;
-- Table structure for table `clients_backup`
--
DROP TABLE IF EXISTS `clients_backup`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `clients_backup` (
CREATE TABLE IF NOT EXISTS `clients_backup` (
`client_id` int(11) NOT NULL,
`name` char(250) COLLATE utf8mb4_unicode_ci NOT NULL,
`agency_id` int(11) NOT NULL,
@ -1048,10 +1032,9 @@ CREATE TABLE `clients_backup` (
-- Table structure for table `clients_id_generator`
--
DROP TABLE IF EXISTS `clients_id_generator`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `clients_id_generator` (
CREATE TABLE IF NOT EXISTS `clients_id_generator` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(250) COLLATE utf8mb4_unicode_ci NOT NULL,
`creation_date` datetime DEFAULT NULL,
@ -1106,10 +1089,9 @@ DELIMITER ;
-- Table structure for table `email_id_metadata`
--
DROP TABLE IF EXISTS `email_id_metadata`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `email_id_metadata` (
CREATE TABLE IF NOT EXISTS `email_id_metadata` (
`user_id` int(11) NOT NULL,
`email` char(250) COLLATE utf8mb4_unicode_ci NOT NULL,
`activation_code` char(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
@ -1166,10 +1148,9 @@ DELIMITER ;
-- Table structure for table `encrypted_app_contexts`
--
DROP TABLE IF EXISTS `encrypted_app_contexts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `encrypted_app_contexts` (
CREATE TABLE IF NOT EXISTS `encrypted_app_contexts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app_id` int(11) NOT NULL,
`app_key` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
@ -1227,10 +1208,9 @@ DELIMITER ;
-- Table structure for table `encrypted_app_contexts_bk`
--
DROP TABLE IF EXISTS `encrypted_app_contexts_bk`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `encrypted_app_contexts_bk` (
CREATE TABLE IF NOT EXISTS `encrypted_app_contexts_bk` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app_id` int(11) NOT NULL,
`app_key` varchar(100) NOT NULL,
@ -1286,10 +1266,9 @@ DELIMITER ;
-- Table structure for table `encrypted_tokens`
--
DROP TABLE IF EXISTS `encrypted_tokens`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `encrypted_tokens` (
CREATE TABLE IF NOT EXISTS `encrypted_tokens` (
`token` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`auth_channel_id` int(11) DEFAULT '1',
`issue_datetime` datetime NOT NULL,
@ -1350,10 +1329,9 @@ DELIMITER ;
-- Table structure for table `entity`
--
DROP TABLE IF EXISTS `entity`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `entity` (
CREATE TABLE IF NOT EXISTS `entity` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`entity_id` int(11) NOT NULL,
`entity_type_id` int(11) NOT NULL,
@ -1447,10 +1425,9 @@ DELIMITER ;
-- Table structure for table `entity_maps`
--
DROP TABLE IF EXISTS `entity_maps`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `entity_maps` (
CREATE TABLE IF NOT EXISTS `entity_maps` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`entity_id` int(11) NOT NULL,
`entity_type_id` int(11) NOT NULL,
@ -1514,10 +1491,9 @@ DELIMITER ;
-- Table structure for table `entity_metadata`
--
DROP TABLE IF EXISTS `entity_metadata`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `entity_metadata` (
CREATE TABLE IF NOT EXISTS `entity_metadata` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`agency_id` int(11) NOT NULL,
`entity_id` int(11) NOT NULL,
@ -1680,10 +1656,9 @@ DELIMITER ;
-- Table structure for table `entity_types`
--
DROP TABLE IF EXISTS `entity_types`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `entity_types` (
CREATE TABLE IF NOT EXISTS `entity_types` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`creation_date` datetime DEFAULT NULL,
@ -1738,10 +1713,9 @@ DELIMITER ;
-- Table structure for table `mccs_id_generator`
--
DROP TABLE IF EXISTS `mccs_id_generator`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mccs_id_generator` (
CREATE TABLE IF NOT EXISTS `mccs_id_generator` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(250) NOT NULL,
`creation_date` datetime DEFAULT NULL,
@ -1796,10 +1770,9 @@ DELIMITER ;
-- Table structure for table `old_app_contexts`
--
DROP TABLE IF EXISTS `old_app_contexts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `old_app_contexts` (
CREATE TABLE IF NOT EXISTS `old_app_contexts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app_id` int(11) NOT NULL,
`app_key` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
@ -1855,10 +1828,9 @@ DELIMITER ;
-- Table structure for table `organization_types`
--
DROP TABLE IF EXISTS `organization_types`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `organization_types` (
CREATE TABLE IF NOT EXISTS `organization_types` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` char(25) COLLATE utf8mb4_unicode_ci NOT NULL,
`creation_date` datetime DEFAULT NULL,
@ -1914,10 +1886,9 @@ DELIMITER ;
-- Table structure for table `otp`
--
DROP TABLE IF EXISTS `otp`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `otp` (
CREATE TABLE IF NOT EXISTS `otp` (
`expiration_datetime` datetime NOT NULL,
`user_id` int(11) NOT NULL,
`id` int(11) NOT NULL AUTO_INCREMENT,
@ -1976,10 +1947,9 @@ DELIMITER ;
-- Table structure for table `schema_info`
--
DROP TABLE IF EXISTS `schema_info`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `schema_info` (
CREATE TABLE IF NOT EXISTS `schema_info` (
`db_name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`version` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`filename` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
@ -1993,10 +1963,9 @@ CREATE TABLE `schema_info` (
-- Table structure for table `sms_log`
--
DROP TABLE IF EXISTS `sms_log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sms_log` (
CREATE TABLE IF NOT EXISTS `sms_log` (
`sms_datetime` datetime NOT NULL,
`user_id` int(11) NOT NULL,
`id` int(11) NOT NULL AUTO_INCREMENT,
@ -2055,10 +2024,9 @@ DELIMITER ;
-- Table structure for table `status_types`
--
DROP TABLE IF EXISTS `status_types`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `status_types` (
CREATE TABLE IF NOT EXISTS `status_types` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` char(25) COLLATE utf8mb4_unicode_ci NOT NULL,
`creation_date` datetime DEFAULT NULL,
@ -2114,10 +2082,9 @@ DELIMITER ;
-- Table structure for table `teams`
--
DROP TABLE IF EXISTS `teams`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `teams` (
CREATE TABLE IF NOT EXISTS `teams` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` char(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`status_type_id` int(11) NOT NULL,
@ -2174,10 +2141,9 @@ DELIMITER ;
-- Table structure for table `tmp_user_client_mappings_del`
--
DROP TABLE IF EXISTS `tmp_user_client_mappings_del`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tmp_user_client_mappings_del` (
CREATE TABLE IF NOT EXISTS `tmp_user_client_mappings_del` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`client_id` int(11) NOT NULL,
@ -2197,10 +2163,9 @@ CREATE TABLE `tmp_user_client_mappings_del` (
-- Table structure for table `tmp_users`
--
DROP TABLE IF EXISTS `tmp_users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tmp_users` (
CREATE TABLE IF NOT EXISTS `tmp_users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` char(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`password` char(60) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
@ -2225,10 +2190,9 @@ CREATE TABLE `tmp_users` (
-- Table structure for table `tokens`
--
DROP TABLE IF EXISTS `tokens`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tokens` (
CREATE TABLE IF NOT EXISTS `tokens` (
`token` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`auth_channel_id` int(11) DEFAULT '1',
`issue_datetime` datetime NOT NULL,
@ -2249,10 +2213,9 @@ CREATE TABLE `tokens` (
-- Table structure for table `tokens_old`
--
DROP TABLE IF EXISTS `tokens_old`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tokens_old` (
CREATE TABLE IF NOT EXISTS `tokens_old` (
`token` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`issue_datetime` datetime NOT NULL,
`expiration_datetime` datetime NOT NULL,
@ -2310,10 +2273,9 @@ DELIMITER ;
-- Table structure for table `user_agency_clients_delta`
--
DROP TABLE IF EXISTS `user_agency_clients_delta`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_agency_clients_delta` (
CREATE TABLE IF NOT EXISTS `user_agency_clients_delta` (
`dml_type` int(11) DEFAULT NULL,
`uow_id` bigint(20) DEFAULT NULL,
`fv$gsn` bigint(20) DEFAULT NULL,
@ -2335,10 +2297,9 @@ CREATE TABLE `user_agency_clients_delta` (
-- Table structure for table `user_agency_mappings`
--
DROP TABLE IF EXISTS `user_agency_mappings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_agency_mappings` (
CREATE TABLE IF NOT EXISTS `user_agency_mappings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`agency_id` int(11) NOT NULL,
@ -2398,10 +2359,9 @@ DELIMITER ;
-- Table structure for table `user_client_mappings`
--
DROP TABLE IF EXISTS `user_client_mappings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_client_mappings` (
CREATE TABLE IF NOT EXISTS `user_client_mappings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`client_id` int(11) NOT NULL,
@ -2462,10 +2422,9 @@ DELIMITER ;
-- Table structure for table `user_details`
--
DROP TABLE IF EXISTS `user_details`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_details` (
CREATE TABLE IF NOT EXISTS `user_details` (
`user_id` int(11) NOT NULL,
`key_id` int(11) NOT NULL,
`value` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL,
@ -2521,10 +2480,9 @@ DELIMITER ;
-- Table structure for table `user_entity_mappings`
--
DROP TABLE IF EXISTS `user_entity_mappings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_entity_mappings` (
CREATE TABLE IF NOT EXISTS `user_entity_mappings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`entity_type_id` int(11) NOT NULL,
@ -2651,10 +2609,9 @@ DELIMITER ;
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users` (
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` char(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`password` char(60) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
@ -2719,10 +2676,9 @@ DELIMITER ;
-- Table structure for table `users_v2`
--
DROP TABLE IF EXISTS `users_v2`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users_v2` (
CREATE TABLE IF NOT EXISTS `users_v2` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` char(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`password` char(60) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
@ -2787,10 +2743,9 @@ DELIMITER ;
-- Table structure for table `users_v3`
--
DROP TABLE IF EXISTS `users_v3`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users_v3` (
CREATE TABLE IF NOT EXISTS `users_v3` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`password` varchar(60) COLLATE utf8mb4_unicode_ci DEFAULT NULL,

File diff suppressed because one or more lines are too long