From 6ad93dff69d7c2beb2196e73f641e6484fccbeb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Tue, 20 Jan 2015 07:40:39 +0100 Subject: new folders --- migrations/20150119171459_init_database.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 migrations/20150119171459_init_database.php (limited to 'migrations/20150119171459_init_database.php') diff --git a/migrations/20150119171459_init_database.php b/migrations/20150119171459_init_database.php new file mode 100644 index 00000000..48a7d4b6 --- /dev/null +++ b/migrations/20150119171459_init_database.php @@ -0,0 +1,27 @@ +execute("CREATE TABLE IF NOT EXISTS `montest` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `value` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8;"); + } + + /** + * Migrate Down. + */ + public function down() + { + $this->execute("DROP DATABASE montest;"); + } +} \ No newline at end of file -- cgit v1.2.3