diff --git a/contrib/migrations/20210705-product-tables.sql b/contrib/migrations/20210705-product-tables.sql index 810d5f8d7..08f6dca5e 100644 --- a/contrib/migrations/20210705-product-tables.sql +++ b/contrib/migrations/20210705-product-tables.sql @@ -2,7 +2,6 @@ CREATE TABLE `Product` ( `id` int NOT NULL AUTO_INCREMENT, `name` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci, - `customer_type` ENUM('residential','business') NOT NULL DEFAULT 'residential', `sla_id` int NOT NULL, `external` tinyint(1) NOT NULL DEFAULT '0', `producttech_id` int DEFAULT NULL, @@ -11,7 +10,7 @@ CREATE TABLE `Product` ( `price_nbe` decimal(12,2) DEFAULT NULL, `price` decimal(12,2) NOT NULL, `billing_period` int NOT NULL COMMENT 'in months', - `ivt_id` INT(11) NULL DEFAULT NULL, + `ivt_id` int DEFAULT NULL, `note` text COLLATE utf8mb4_unicode_520_ci, `create_by` int NOT NULL, `edit_by` int NOT NULL, @@ -62,7 +61,8 @@ CREATE TABLE `Productgroup` ( CREATE TABLE `Producttech` ( `id` int NOT NULL AUTO_INCREMENT, `name` varchar(1024) COLLATE utf8mb4_unicode_520_ci NOT NULL, - `code` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL, + `rtrcode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, + `customer_type` enum('residential','business') COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT 'residential', `description` text COLLATE utf8mb4_unicode_520_ci NOT NULL, `note` text COLLATE utf8mb4_unicode_520_ci NOT NULL, `create_by` int NOT NULL,