Skip to content

Commit

Permalink
Mod wcom.sql to ensure compatibility to mysql >= 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
olafgleba committed Aug 7, 2012
1 parent a8b942e commit 67b0a35
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions database/wcom.sql
Expand Up @@ -37,7 +37,7 @@ CREATE TABLE `user_users` (
`homepage` varchar(255),
`secret` varchar(255),
`editable` enum('0','1') NOT NULL DEFAULT '1',
`date_modified` timestamp(14),
`date_modified` timestamp,
`date_added` datetime,
`_sync` varchar(255),
PRIMARY KEY(`id`),
Expand Down Expand Up @@ -67,7 +67,7 @@ CREATE TABLE `application_projects` (
`name_url` varchar(255),
`default` enum('0','1') DEFAULT '0',
`editable` enum('0','1') DEFAULT '0',
`date_modified` timestamp(14),
`date_modified` timestamp,
`date_added` datetime,
PRIMARY KEY(`id`),
INDEX `owner`(`owner`),
Expand All @@ -91,7 +91,7 @@ CREATE TABLE `templating_global_files` (
`name_on_disk` varchar(255),
`mime_type` varchar(255),
`size` int(11) UNSIGNED,
`date_modified` timestamp(14),
`date_modified` timestamp,
`date_added` datetime,
PRIMARY KEY(`id`),
INDEX `project`(`project`),
Expand All @@ -114,7 +114,7 @@ CREATE TABLE `templating_global_templates` (
`content` text,
`mime_type` varchar(50),
`change_delimiter` enum('0','1') DEFAULT '0',
`date_modified` timestamp(14),
`date_modified` timestamp,
`date_added` datetime,
PRIMARY KEY(`id`),
INDEX `project`(`project`),
Expand Down Expand Up @@ -191,7 +191,7 @@ CREATE TABLE `content_structural_templates` (
`description` text,
`content` text,
`date_added` datetime,
`date_modified` timestamp(14),
`date_modified` timestamp,
PRIMARY KEY(`id`),
INDEX `project`(`project`),
CONSTRAINT `content_structural_templates.id2application_projects.id` FOREIGN KEY (`project`)
Expand All @@ -211,7 +211,7 @@ CREATE TABLE `content_blog_podcast_categories` (
`category` varchar(255),
`subcategory` varchar(255),
`date_added` datetime,
`date_modified` timestamp(14),
`date_modified` timestamp,
PRIMARY KEY(`id`),
INDEX `project`(`project`),
CONSTRAINT `content_blog_podcast_categories.project2application_projects.id` FOREIGN KEY (`project`)
Expand All @@ -230,7 +230,7 @@ CREATE TABLE `user_groups` (
`name` varchar(255),
`description` text,
`editable` enum('0','1') DEFAULT '0',
`date_modified` timestamp(14),
`date_modified` timestamp,
`date_added` datetime,
PRIMARY KEY(`id`),
INDEX `project`(`project`),
Expand Down Expand Up @@ -311,7 +311,7 @@ CREATE TABLE `media_objects` (
`preview_height` int(11) UNSIGNED,
`preview_width` int(11) UNSIGNED,
`preview_size` int(11) UNSIGNED,
`date_modified` timestamp(14),
`date_modified` timestamp,
`date_added` datetime,
PRIMARY KEY(`id`),
INDEX `project`(`project`),
Expand Down Expand Up @@ -503,7 +503,7 @@ CREATE TABLE `templating_templates` (
`name` varchar(255),
`description` text,
`content` text,
`date_modified` timestamp(14),
`date_modified` timestamp,
`date_added` datetime,
PRIMARY KEY(`id`),
INDEX `type`(`type`),
Expand All @@ -529,7 +529,7 @@ CREATE TABLE `content_abbreviations` (
`apply_macros` enum('0','1') NOT NULL DEFAULT '0',
`lang` varchar(2),
`date_added` datetime,
`date_modified` timestamp(14),
`date_modified` timestamp,
PRIMARY KEY(`id`),
INDEX `project`(`project`),
INDEX `text_converter`(`text_converter`),
Expand All @@ -556,7 +556,7 @@ CREATE TABLE `content_global_boxes` (
`text_converter` int(11) UNSIGNED,
`apply_macros` enum('0','1') NOT NULL DEFAULT '0',
`priority` int(11) UNSIGNED,
`date_modified` timestamp(14),
`date_modified` timestamp,
`date_added` datetime,
PRIMARY KEY(`id`),
INDEX `project`(`project`),
Expand Down Expand Up @@ -808,7 +808,7 @@ CREATE TABLE `content_boxes` (
`text_converter` int(11) UNSIGNED,
`apply_macros` enum('0','1') NOT NULL DEFAULT '0',
`priority` int(11) UNSIGNED,
`date_modified` timestamp(14),
`date_modified` timestamp,
`date_added` datetime,
PRIMARY KEY(`id`),
INDEX `page`(`page`),
Expand Down Expand Up @@ -888,7 +888,7 @@ CREATE TABLE `content_simple_pages` (
`meta_title` varchar(255),
`meta_keywords` text,
`meta_description` text,
`date_modified` timestamp(14),
`date_modified` timestamp,
`date_added` datetime,
PRIMARY KEY(`id`),
INDEX `user`(`user`),
Expand Down Expand Up @@ -930,7 +930,7 @@ CREATE TABLE `content_simple_forms` (
`email_to` varchar(255),
`email_subject` varchar(255),
`use_captcha` enum('no','image','numeral') DEFAULT 'no',
`date_modified` timestamp(14),
`date_modified` timestamp,
`date_added` datetime,
PRIMARY KEY(`id`),
INDEX `user`(`user`),
Expand Down Expand Up @@ -970,7 +970,7 @@ CREATE TABLE `content_generator_forms` (
`email_to` varchar(255),
`email_subject` varchar(255),
`use_captcha` enum('no','image','numeral') DEFAULT 'no',
`date_modified` timestamp(14),
`date_modified` timestamp,
`date_added` datetime,
PRIMARY KEY(`id`),
INDEX `user`(`user`),
Expand Down Expand Up @@ -1025,7 +1025,7 @@ CREATE TABLE `content_blog_postings` (
`pingback_count` int(11) UNSIGNED NOT NULL DEFAULT '0',
`tag_count` int(11) UNSIGNED DEFAULT '0',
`tag_array` text,
`date_modified` timestamp(14),
`date_modified` timestamp,
`date_added` datetime,
`day_added` char(2),
`month_added` char(2),
Expand Down Expand Up @@ -1068,7 +1068,7 @@ CREATE TABLE `content_event_postings` (
`draft` enum('0','1') DEFAULT '0',
`tag_count` int(11) UNSIGNED DEFAULT '0',
`tag_array` text,
`date_modified` timestamp(14),
`date_modified` timestamp,
`date_added` datetime,
`day_added` char(2),
`month_added` char(2),
Expand Down Expand Up @@ -1124,7 +1124,7 @@ CREATE TABLE `content_simple_dates` (
`ping` enum('0','1') DEFAULT '1',
`pingbacks_enable` enum('0','1') DEFAULT '1',
`pingback_count` int(11) UNSIGNED NOT NULL DEFAULT '0',
`date_modified` timestamp(14),
`date_modified` timestamp,
`date_added` datetime,
PRIMARY KEY(`id`),
INDEX `page`(`page`),
Expand Down Expand Up @@ -1163,7 +1163,7 @@ CREATE TABLE `community_blog_comments` (
`text_converter` int(11) UNSIGNED,
`spam_report` text,
`edited` enum('0','1') DEFAULT '0',
`date_modified` timestamp(14),
`date_modified` timestamp,
`date_added` datetime,
PRIMARY KEY(`id`),
INDEX `posting`(`posting`),
Expand Down Expand Up @@ -1212,7 +1212,7 @@ CREATE TABLE `content_blog_podcasts` (
`duration` int(11) UNSIGNED,
`explicit` enum('yes','no','clean') DEFAULT 'no',
`date_added` datetime,
`date_modified` timestamp(14),
`date_modified` timestamp,
PRIMARY KEY(`id`),
INDEX `blog_posting`(`blog_posting`),
INDEX `media_object`(`media_object`),
Expand Down Expand Up @@ -1298,7 +1298,7 @@ CREATE TABLE `content_simple_guestbooks` (
`notification_email_from` varchar(255) default NULL,
`notification_email_to` varchar(255) default NULL,
`notification_email_subject` varchar(255) default NULL,
`date_modified` timestamp(14),
`date_modified` timestamp,
`date_added` datetime,
PRIMARY KEY (`id`),
INDEX `user` (`user`),
Expand Down Expand Up @@ -1331,7 +1331,7 @@ CREATE TABLE `content_simple_guestbook_entries` (
`content` text,
`content_raw` text,
`text_converter` int(11) default NULL,
`date_modified` timestamp(14),
`date_modified` timestamp,
`date_added` datetime,
PRIMARY KEY (`id`),
INDEX `book` (`book`),
Expand Down

0 comments on commit 67b0a35

Please sign in to comment.