Dropping .erbsql files (we now have schema.rb instead)

This commit is contained in:
Alexey Verkhovsky 2005-11-02 05:36:11 +00:00
parent 0b05368359
commit c6ea47d6de
6 changed files with 0 additions and 98 deletions

View file

@ -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 %>;

View file

@ -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 %>;

View file

@ -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
);

View file

@ -1,4 +0,0 @@
CREATE TABLE system (
id <%= @pk %>,
<%= db_quote('password') %> VARCHAR(60)
) <%= create_options %>;

View file

@ -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 %>;

View file

@ -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 %>;