This commit is contained in:
fbsanchez 2021-10-14 21:09:14 +02:00
parent 79174d512d
commit 6a537e58f4
3 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;