[Bast-commits] r8971 - ironman
idn at dev.catalyst.perl.org
idn at dev.catalyst.perl.org
Thu Mar 11 19:31:27 GMT 2010
Author: idn
Date: 2010-03-11 19:31:27 +0000 (Thu, 11 Mar 2010)
New Revision: 8971
Removed:
ironman/IronMan-Schema-0.01-0.02-MySQL.sql
ironman/IronMan-Schema-0.01-0.02-PostgreSQL.sql
ironman/IronMan-Schema-0.01-0.02-SQLite.sql
ironman/IronMan-Schema-0.01-SQLite.sql
ironman/IronMan-Schema-0.02-0.03-SQLite.sql
ironman/IronMan-Schema-0.02-MySQL.sql
Log:
Moving schema upgrade files into distro dir
Deleted: ironman/IronMan-Schema-0.01-0.02-MySQL.sql
===================================================================
--- ironman/IronMan-Schema-0.01-0.02-MySQL.sql 2010-03-11 19:30:50 UTC (rev 8970)
+++ ironman/IronMan-Schema-0.01-0.02-MySQL.sql 2010-03-11 19:31:27 UTC (rev 8971)
@@ -1,34 +0,0 @@
--- Convert schema './IronMan-Schema-0.01-MySQL.sql' to 'IronMan::Schema v0.02':;
-
-BEGIN;
-
-SET foreign_key_checks=0;
-
-CREATE TABLE `posts` (
- post_id integer NOT NULL auto_increment,
- feed_id varchar(255) NOT NULL,
- url text NOT NULL,
- title text NOT NULL,
- posted_on datetime NOT NULL,
- summary text,
- body text NOT NULL,
- summary_filtered text,
- body_filtered text,
- INDEX posts_idx_feed_id (feed_id),
- PRIMARY KEY (post_id),
- UNIQUE url (url),
- CONSTRAINT posts_fk_feed_id FOREIGN KEY (feed_id) REFERENCES `feed` (id)
-) ENGINE=InnoDB;
-
-SET foreign_key_checks=1;
-
-ALTER TABLE feed CHANGE COLUMN url url text,
- CHANGE COLUMN link link text,
- CHANGE COLUMN title title text;
-
-ALTER TABLE tag CHANGE COLUMN name name text NOT NULL;
-
-
-COMMIT;
-
-
Deleted: ironman/IronMan-Schema-0.01-0.02-PostgreSQL.sql
===================================================================
--- ironman/IronMan-Schema-0.01-0.02-PostgreSQL.sql 2010-03-11 19:30:50 UTC (rev 8970)
+++ ironman/IronMan-Schema-0.01-0.02-PostgreSQL.sql 2010-03-11 19:31:27 UTC (rev 8971)
@@ -1,26 +0,0 @@
--- Convert schema './IronMan-Schema-0.01-PostgreSQL.sql' to './IronMan-Schema-0.02-PostgreSQL.sql':;
-
-BEGIN;
-
-CREATE TABLE "posts" (
- "post_id" serial NOT NULL,
- "feed_id" character varying(255) NOT NULL,
- "url" character varying(1024) NOT NULL,
- "title" character varying(1024) NOT NULL,
- "posted_on" timestamp NOT NULL,
- "summary" text,
- "body" text NOT NULL,
- "summary_filtered" text,
- "body_filtered" text,
- PRIMARY KEY ("post_id"),
- CONSTRAINT "url3" UNIQUE ("url")
-);
-CREATE INDEX "posts_idx_feed_id" on "posts" ("feed_id");
-
-ALTER TABLE "posts" ADD FOREIGN KEY ("feed_id")
- REFERENCES "feed" ("id") DEFERRABLE;
-
-
-COMMIT;
-
-
Deleted: ironman/IronMan-Schema-0.01-0.02-SQLite.sql
===================================================================
--- ironman/IronMan-Schema-0.01-0.02-SQLite.sql 2010-03-11 19:30:50 UTC (rev 8970)
+++ ironman/IronMan-Schema-0.01-0.02-SQLite.sql 2010-03-11 19:31:27 UTC (rev 8971)
@@ -1,24 +0,0 @@
--- Convert schema './IronMan-Schema-0.01-SQLite.sql' to './IronMan-Schema-0.02-SQLite.sql':;
-
-BEGIN;
-
-CREATE TABLE posts (
- post_id INTEGER PRIMARY KEY NOT NULL,
- feed_id varchar(255) NOT NULL,
- url varchar(1024) NOT NULL,
- title varchar(1024) NOT NULL,
- posted_on datetime NOT NULL,
- summary text,
- body text NOT NULL,
- summary_filtered text,
- body_filtered text
-);
-
-CREATE INDEX posts_idx_feed_id ON posts (feed_id);
-
-CREATE UNIQUE INDEX url02 ON posts (url);
-
-
-COMMIT;
-
-
Deleted: ironman/IronMan-Schema-0.01-SQLite.sql
===================================================================
--- ironman/IronMan-Schema-0.01-SQLite.sql 2010-03-11 19:30:50 UTC (rev 8970)
+++ ironman/IronMan-Schema-0.01-SQLite.sql 2010-03-11 19:31:27 UTC (rev 8971)
@@ -1,51 +0,0 @@
---
--- Created by SQL::Translator::Producer::SQLite
--- Created on Sat Dec 12 15:38:01 2009
---
-
-
-BEGIN TRANSACTION;
-
---
--- Table: feed
---
-DROP TABLE feed;
-
-CREATE TABLE feed (
- id varchar(255) NOT NULL,
- url varchar(1024),
- link varchar(1024),
- title varchar(1024),
- owner varchar(255) NOT NULL,
- PRIMARY KEY (id)
-);
-
-CREATE UNIQUE INDEX url ON feed (url);
-
---
--- Table: tag
---
-DROP TABLE tag;
-
-CREATE TABLE tag (
- id INTEGER PRIMARY KEY NOT NULL,
- name varchar(1024) NOT NULL
-);
-
---
--- Table: feed_tag_map
---
-DROP TABLE feed_tag_map;
-
-CREATE TABLE feed_tag_map (
- feed integer NOT NULL,
- tag integer NOT NULL,
- PRIMARY KEY (feed, tag)
-);
-
-CREATE INDEX feed_tag_map_idx_feed ON feed_tag_map (feed);
-
-CREATE INDEX feed_tag_map_idx_tag ON feed_tag_map (tag);
-
-COMMIT;
-
Deleted: ironman/IronMan-Schema-0.02-0.03-SQLite.sql
===================================================================
--- ironman/IronMan-Schema-0.02-0.03-SQLite.sql 2010-03-11 19:30:50 UTC (rev 8970)
+++ ironman/IronMan-Schema-0.02-0.03-SQLite.sql 2010-03-11 19:31:27 UTC (rev 8971)
@@ -1,11 +0,0 @@
--- Convert schema './IronMan-Schema-0.02-SQLite.sql' to './IronMan-Schema-0.03-SQLite.sql':;
-
-BEGIN;
-
-ALTER TABLE posts ADD COLUMN author varchar(1024) NOT NULL;
-
-ALTER TABLE posts ADD COLUMN tags varchar(1024) NOT NULL;
-
-
-COMMIT;
-
Deleted: ironman/IronMan-Schema-0.02-MySQL.sql
===================================================================
--- ironman/IronMan-Schema-0.02-MySQL.sql 2010-03-11 19:30:50 UTC (rev 8970)
+++ ironman/IronMan-Schema-0.02-MySQL.sql 2010-03-11 19:31:27 UTC (rev 8971)
@@ -1,71 +0,0 @@
---
--- Created by SQL::Translator::Producer::MySQL
--- Created on Sat Dec 12 16:12:47 2009
---
-SET foreign_key_checks=0;
-
-DROP TABLE IF EXISTS `feed`;
-
---
--- Table: `feed`
---
-CREATE TABLE `feed` (
- `id` varchar(255) NOT NULL,
- `url` text,
- `link` text,
- `title` text,
- `owner` varchar(255) NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE `url` (`url`)
-) ENGINE=InnoDB;
-
-DROP TABLE IF EXISTS `tag`;
-
---
--- Table: `tag`
---
-CREATE TABLE `tag` (
- `id` integer NOT NULL auto_increment,
- `name` text NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB;
-
-DROP TABLE IF EXISTS `posts`;
-
---
--- Table: `posts`
---
-CREATE TABLE `posts` (
- `post_id` integer NOT NULL auto_increment,
- `feed_id` varchar(255) NOT NULL,
- `url` text NOT NULL,
- `title` text NOT NULL,
- `posted_on` datetime NOT NULL,
- `summary` text,
- `body` text NOT NULL,
- `summary_filtered` text,
- `body_filtered` text,
- INDEX posts_idx_feed_id (`feed_id`),
- PRIMARY KEY (`post_id`),
- UNIQUE `url` (`url`),
- CONSTRAINT `posts_fk_feed_id` FOREIGN KEY (`feed_id`) REFERENCES `feed` (`id`)
-) ENGINE=InnoDB;
-
-DROP TABLE IF EXISTS `feed_tag_map`;
-
---
--- Table: `feed_tag_map`
---
-CREATE TABLE `feed_tag_map` (
- `feed` integer NOT NULL,
- `tag` integer NOT NULL,
- INDEX feed_tag_map_idx_feed (`feed`),
- INDEX feed_tag_map_idx_tag (`tag`),
- PRIMARY KEY (`feed`, `tag`),
- CONSTRAINT `feed_tag_map_fk_feed` FOREIGN KEY (`feed`) REFERENCES `feed` (`id`),
- CONSTRAINT `feed_tag_map_fk_tag` FOREIGN KEY (`tag`) REFERENCES `tag` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB;
-
-SET foreign_key_checks=1;
-
-
More information about the Bast-commits
mailing list