salix/db/versions/.archive/10262-salmonTulip/03-createTablepackingWithou...

10 lines
526 B
SQL

DROP TABLE IF EXISTS vn.packagingWithoutFreight;
CREATE TABLE vn.`packagingWithoutFreight` (
`packagingFk` varchar(10) COLLATE utf8mb3_unicode_ci NOT NULL,
`priority` int(11) NOT NULL,
PRIMARY KEY (`packagingFk`),
UNIQUE KEY `packagingWithoutFreight_UN` (`priority`),
CONSTRAINT `packagingWithoutFreight_FK` FOREIGN KEY (`packagingFk`) REFERENCES `packaging` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Embalajes sin porte para encajar';