Permalink
Browse files

add news migrations

  • Loading branch information...
1 parent 03b6911 commit 8d41195ce0bbaae31b6ed2d1412a4dcd24fa9ede @Big-Shark Big-Shark committed Feb 14, 2012
Showing with 24 additions and 0 deletions.
  1. +24 −0 news/news.sql
View
@@ -0,0 +1,24 @@
+--add News
+
+--UP
+CREATE TABLE IF NOT EXISTS `news` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `title` varchar(250) NOT NULL,
+ `description` text,
+ `text` text,
+ `created_on` TIMESTAMP NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
+
+CREATE TABLE IF NOT EXISTS `news_images` (
+ `id` INT NOT NULL AUTO_INCREMENT,
+ `title` varchar(250) NOT NULL,
+ `file` varchar(250) NOT NULL,
+ `thumb` varchar(250) NOT NULL,
+ `news_id` int NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
+
+--DOWN
+DROP TABLE `news`;
+DROP TABLE `news_images`;

0 comments on commit 8d41195

Please sign in to comment.