From c6ea47d6deeec7e4d44f419352bd69ba710e137f Mon Sep 17 00:00:00 2001 From: Alexey Verkhovsky Date: Wed, 2 Nov 2005 05:36:11 +0000 Subject: [PATCH] Dropping .erbsql files (we now have schema.rb instead) --- db/pages.erbsql | 9 -------- db/revisions.erbsql | 16 --------------- db/schema.postgre.sql | 43 --------------------------------------- db/system.erbsql | 4 ---- db/webs.erbsql | 17 ---------------- db/wiki_references.erbsql | 9 -------- 6 files changed, 98 deletions(-) delete mode 100644 db/pages.erbsql delete mode 100644 db/revisions.erbsql delete mode 100644 db/schema.postgre.sql delete mode 100644 db/system.erbsql delete mode 100644 db/webs.erbsql delete mode 100644 db/wiki_references.erbsql diff --git a/db/pages.erbsql b/db/pages.erbsql deleted file mode 100644 index 5c2dd6d5..00000000 --- a/db/pages.erbsql +++ /dev/null @@ -1,9 +0,0 @@ -CREATE TABLE pages ( - id <%= @pk %>, - created_at <%= @datetime %> NOT NULL, - updated_at <%= @datetime %> NOT NULL, - web_id INTEGER NOT NULL, - locked_by VARCHAR(60), - name VARCHAR(60), - locked_at <%= @datetime %> -) <%= create_options %>; \ No newline at end of file diff --git a/db/revisions.erbsql b/db/revisions.erbsql deleted file mode 100644 index 2b8e6e0e..00000000 --- a/db/revisions.erbsql +++ /dev/null @@ -1,16 +0,0 @@ -CREATE TABLE revisions ( - id <%= @pk %>, - created_at <%= @datetime %> NOT NULL, - updated_at <%= @datetime %> NOT NULL, - - -- note that continuous edits change the existing last revision, instead of creating one - -- revised_at is the timestamp of last edit of this revision - -- unlike updated_at is can be set explicitly in a call to Revision.create - -- besides, it should not be updated when Revision row changes for any other reason than - -- changing content - revised_at <%= @datetime %> NOT NULL, - page_id INTEGER NOT NULL, - content TEXT NOT NULL, - author VARCHAR(60), - ip VARCHAR(60) -) <%= create_options %>; \ No newline at end of file diff --git a/db/schema.postgre.sql b/db/schema.postgre.sql deleted file mode 100644 index 5191d9e4..00000000 --- a/db/schema.postgre.sql +++ /dev/null @@ -1,43 +0,0 @@ -CREATE TABLE pages ( - id serial primary key, - created_at timestamp without time zone NOT NULL, - updated_at timestamp without time zone NOT NULL, - web_id integer NOT NULL, - locked_by character varying(60), - name character varying(60), - locked_at timestamp without time zone -); - -CREATE TABLE revisions ( - id serial primary key, - created_at timestamp without time zone NOT NULL, - updated_at timestamp without time zone NOT NULL, - page_id integer NOT NULL, - content text NOT NULL, - author character varying(60), - ip character varying(60), - number integer -); - -CREATE TABLE system ( - id serial primary key, - "password" character varying(60) -); - -CREATE TABLE webs ( - id serial primary key, - created_at timestamp without time zone NOT NULL, - updated_at timestamp without time zone NOT NULL, - name character varying(60) NOT NULL, - address character varying(60) NOT NULL, - "password" character varying(60), - additional_style character varying(255), - allow_uploads boolean DEFAULT true, - published boolean DEFAULT false, - count_pages boolean DEFAULT false, - markup character varying(50) DEFAULT 'textile'::character varying, - color character varying(6) DEFAULT '008B26'::character varying, - max_upload_size integer DEFAULT 100, - safe_mode boolean DEFAULT false, - brackets_only boolean DEFAULT false -); diff --git a/db/system.erbsql b/db/system.erbsql deleted file mode 100644 index e0a55a33..00000000 --- a/db/system.erbsql +++ /dev/null @@ -1,4 +0,0 @@ -CREATE TABLE system ( - id <%= @pk %>, - <%= db_quote('password') %> VARCHAR(60) -) <%= create_options %>; \ No newline at end of file diff --git a/db/webs.erbsql b/db/webs.erbsql deleted file mode 100644 index c29728cd..00000000 --- a/db/webs.erbsql +++ /dev/null @@ -1,17 +0,0 @@ -CREATE TABLE webs ( - id <%= @pk %>, - created_at <%= @datetime %> NOT NULL, - updated_at <%= @datetime %> NOT NULL, - name VARCHAR(60) NOT NULL, - address VARCHAR(60) NOT NULL, - <%= db_quote('password') %> VARCHAR(60), - additional_style VARCHAR(255), - allow_uploads <%= @boolean %> DEFAULT '1', - published <%= @boolean %> DEFAULT '0', - count_pages <%= @boolean %> DEFAULT '0', - markup VARCHAR(50) DEFAULT 'textile', - color VARCHAR(6) DEFAULT '008B26', - max_upload_size INTEGER DEFAULT 100, - safe_mode <%= @boolean %> DEFAULT '0', - brackets_only <%= @boolean %> DEFAULT '0' -) <%= create_options %>; \ No newline at end of file diff --git a/db/wiki_references.erbsql b/db/wiki_references.erbsql deleted file mode 100644 index 6b7115ce..00000000 --- a/db/wiki_references.erbsql +++ /dev/null @@ -1,9 +0,0 @@ -CREATE TABLE wiki_references ( - id <%= @pk %>, - created_at <%= @datetime %> NOT NULL, - updated_at <%= @datetime %> NOT NULL, - - page_id INTEGER NOT NULL, - referenced_name VARCHAR(60) NOT NULL, - link_type CHAR(1) NOT NULL -) <%= create_options %>; \ No newline at end of file