diff --git a/var/upgrades/3.0400.sql b/var/upgrades/3.0400.sql new file mode 100644 index 00000000..3af2ef73 --- /dev/null +++ b/var/upgrades/3.0400.sql @@ -0,0 +1,13 @@ +CREATE TABLE `laws` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(30) NOT NULL, + `station_id` int(11) NOT NULL, + `description` text, + `type` varchar(30) NOT NULL, + `scratch` mediumblob, + `date_enacted` datetime NOT NULL, + PRIMARY KEY (`id`), + KEY `laws_idx_station_id` (`station_id`), + KEY `idx_date_enacted` (`date_enacted`), + CONSTRAINT `laws_fk_station_id` FOREIGN KEY (`station_id`) REFERENCES `body` (`id`) +);