Permalink
Browse files

Add migrations

  • Loading branch information...
1 parent 4851c19 commit 79e192308f8b858cb998d8d2e23b328ac4d386fa @simonewebdesign committed Feb 11, 2013
View
9 db/migrations/11-02-2013-16-30-create-table-templates.sql
@@ -0,0 +1,9 @@
+CREATE TABLE IF NOT EXISTS `templates` (
+ `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
+ `name` varchar(10) NOT NULL,
+ `body` text NOT NULL,
+ `created_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `updated_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `is_deleted` tinyint(1) NOT NULL DEFAULT 0,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
View
2 db/migrations/11-02-2013-17-17-add-template_id-to-newsletters.sql
@@ -0,0 +1,2 @@
+ALTER TABLE `newsletters`
+ADD `template_id` int(10) NOT NULL;

0 comments on commit 79e1923

Please sign in to comment.