From 02e06de22da895db066b6875182670345869e742 Mon Sep 17 00:00:00 2001 From: Timo John Date: Tue, 16 Jun 2020 10:09:13 +0200 Subject: [PATCH] Add description and preview_img to setup.sql --- Scripts/setup.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Scripts/setup.sql b/Scripts/setup.sql index 40523df..9e0b709 100644 --- a/Scripts/setup.sql +++ b/Scripts/setup.sql @@ -80,9 +80,11 @@ CREATE TABLE IF NOT EXISTS `regions` ( `meteostat_id` varchar(11) DEFAULT NULL, `lon` double(22,0) DEFAULT NULL, `lat` double(22,0) DEFAULT NULL, + `preview_img` VARCHAR(255) NULL DEFAULT NULL, + `description` VARCHAR(4000) NULL DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), - PRIMARY KEY (`id`) USING BTREE, + PRIMARY KEY (`id`) USING BTREE,git KEY `FK_regions_countries` (`country_id`) USING BTREE, CONSTRAINT `FK_regions_countries` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`) ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=127 DEFAULT CHARSET=utf8mb4;