Fix
This commit is contained in:
parent
79174d512d
commit
6a537e58f4
|
@ -21,14 +21,14 @@ DELETE FROM `treport_content` WHERE type = 'histogram_data';
|
|||
|
||||
CREATE TABLE IF NOT EXISTS `tncm_vendor` (
|
||||
`id` serial,
|
||||
`name` TEXT UNIQUE,
|
||||
`name` varchar(500) UNIQUE,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `tncm_model` (
|
||||
`id` serial,
|
||||
`id_vendor` bigint(20) unsigned NOT NULL,
|
||||
`name` TEXT UNIQUE,
|
||||
`name` varchar(500) UNIQUE,
|
||||
PRIMARY KEY (`id`),
|
||||
FOREIGN KEY (`id_vendor`) REFERENCES `tncm_vendor`(`id`) ON UPDATE CASCADE ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
|
|
@ -4098,7 +4098,7 @@ UPDATE `tlanguage` SET `name` = 'Deutsch' WHERE `id_language` = 'de';
|
|||
-- ----------------------------------------------------------------------
|
||||
CREATE TABLE IF NOT EXISTS `tncm_vendor` (
|
||||
`id` serial,
|
||||
`name` TEXT UNIQUE,
|
||||
`name` varchar(500) UNIQUE,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
@ -4108,7 +4108,7 @@ CREATE TABLE IF NOT EXISTS `tncm_vendor` (
|
|||
CREATE TABLE IF NOT EXISTS `tncm_model` (
|
||||
`id` serial,
|
||||
`id_vendor` bigint(20) unsigned NOT NULL,
|
||||
`name` TEXT UNIQUE,
|
||||
`name` varchar(500) UNIQUE,
|
||||
PRIMARY KEY (`id`),
|
||||
FOREIGN KEY (`id_vendor`) REFERENCES `tncm_vendor`(`id`) ON UPDATE CASCADE ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
|
|
@ -4034,7 +4034,7 @@ CREATE TABLE IF NOT EXISTS `tsync_queue` (
|
|||
-- ----------------------------------------------------------------------
|
||||
CREATE TABLE IF NOT EXISTS `tncm_vendor` (
|
||||
`id` serial,
|
||||
`name` TEXT UNIQUE,
|
||||
`name` varchar(500) UNIQUE,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
@ -4044,7 +4044,7 @@ CREATE TABLE IF NOT EXISTS `tncm_vendor` (
|
|||
CREATE TABLE IF NOT EXISTS `tncm_model` (
|
||||
`id` serial,
|
||||
`id_vendor` bigint(20) unsigned NOT NULL,
|
||||
`name` TEXT UNIQUE,
|
||||
`name` varchar(500) UNIQUE,
|
||||
PRIMARY KEY (`id`),
|
||||
FOREIGN KEY (`id_vendor`) REFERENCES `tncm_vendor`(`id`) ON UPDATE CASCADE ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
|
Loading…
Reference in New Issue