API 1.0.36 description table

This commit is contained in:
Bossanyi Tibor
2021-05-04 07:52:55 +02:00
parent e7c9cdc153
commit bd468c9135
10 changed files with 132 additions and 13 deletions
+25
View File
@@ -383,6 +383,31 @@ CREATE TABLE IF NOT EXISTS `django_admin_log` (
CONSTRAINT `django_admin_log_user_id_c564eba6_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=127 DEFAULT CHARSET=utf8 COLLATE=utf8_hungarian_ci;
CREATE TABLE `description` (
`description_id` INT(11) NOT NULL AUTO_INCREMENT,
`name` CHAR(50) NOT NULL COLLATE 'utf8_hungarian_ci',
`description` TEXT NOT NULL COLLATE 'utf8_hungarian_ci',
`version` INT(3) NULL DEFAULT '0',
`valid_from` DATETIME NULL DEFAULT NULL,
`valid_to` DATETIME NULL DEFAULT NULL,
PRIMARY KEY (`description_id`) USING BTREE,
INDEX `name` (`name`) USING BTREE
)
COLLATE='utf8_hungarian_ci'
ENGINE=InnoDB
;
CREATE TABLE `description_translation` (
`translation_id` INT(13) NOT NULL AUTO_INCREMENT,
`description_id` INT(11) NOT NULL,
`language_code` CHAR(2) NOT NULL DEFAULT 'en' COLLATE 'utf8mb4_general_ci',
`description_translation` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
PRIMARY KEY (`translation_id`) USING BTREE
)
COLLATE='utf8mb4_general_ci'
ENGINE=InnoDB
;
-- Tábla adatainak mentése aitrainer2.django_admin_log: ~118 rows (hozzávetőleg)
/*!40000 ALTER TABLE `django_admin_log` DISABLE KEYS */;
REPLACE INTO `django_admin_log` (`id`, `action_time`, `object_id`, `object_repr`, `action_flag`, `change_message`, `content_type_id`, `user_id`) VALUES
+30
View File
@@ -0,0 +1,30 @@
START TRANSACTION;
CREATE TABLE `description` (
`description_id` INT(11) NOT NULL AUTO_INCREMENT,
`name` CHAR(50) NOT NULL COLLATE 'utf8_hungarian_ci',
`description` TEXT NOT NULL COLLATE 'utf8_hungarian_ci',
`version` INT(3) NULL DEFAULT '0',
`valid_from` DATETIME NULL DEFAULT NULL,
`valid_to` DATETIME NULL DEFAULT NULL,
PRIMARY KEY (`description_id`) USING BTREE,
INDEX `name` (`name`) USING BTREE
)
COLLATE='utf8_hungarian_ci'
ENGINE=InnoDB
;
CREATE TABLE `description_translation` (
`translation_id` INT(13) NOT NULL AUTO_INCREMENT,
`description_id` INT(11) NOT NULL,
`language_code` CHAR(2) NOT NULL DEFAULT 'en' COLLATE 'utf8mb4_general_ci',
`description_translation` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
PRIMARY KEY (`translation_id`) USING BTREE
)
COLLATE='utf8mb4_general_ci'
ENGINE=InnoDB
;
UPDATE configuration set config_value = "1.0.36", date_change=CURRENT_DATE WHERE config_key = "db_version";
COMMIT;