From ea42d6fedbe0e622bdbd4984ca8f1b14d201c1bd Mon Sep 17 00:00:00 2001
From: Purodha Blissenbach <purodha.blissenbach@hostsharing.net>
Date: Thu, 20 Sep 2012 20:24:55 +0200
Subject: [PATCH] More domainoptions preemptively preset in data base, existing options renmend ( no no-), tests universalized.

---
 hsarback/database/database_update.sql |   43 -------------------------------------------
 1 files changed, 0 insertions(+), 43 deletions(-)

diff --git a/hsarback/database/database_update.sql b/hsarback/database/database_update.sql
index 9715a87..e69de29 100644
--- a/hsarback/database/database_update.sql
+++ b/hsarback/database/database_update.sql
@@ -1,43 +0,0 @@
-CREATE SEQUENCE domain_option_id_seq
-    INCREMENT BY 1
-    NO MAXVALUE
-    NO MINVALUE
-    CACHE 1;
-
-CREATE TABLE domain_option (
-    domain_option_id integer DEFAULT nextval(('"domain_option_id_seq"'::text)::regclass) NOT NULL,
-    domain_option_name character varying(50) NOT NULL
-);
-
-ALTER TABLE ONLY domain_option
-    ADD CONSTRAINT domain_option_uniq UNIQUE (domain_option_id);
-
-CREATE UNIQUE INDEX ON domain_option ( domain_option_name );
-
-CREATE TABLE domain__domain_option (
-	domain_option_id integer NOT NULL,
-	domain_id integer NOT NULL
-); 
-
-CREATE UNIQUE INDEX unique_domain__domain_option ON domain__domain_option USING btree (domain_option_id, domain_id);
-
-ALTER TABLE ONLY domain__domain_option
-    ADD CONSTRAINT domain_option_id_fkey FOREIGN KEY (domain_option_id) 
-    	REFERENCES domain_option(domain_option_id) DEFERRABLE;
-
-ALTER TABLE ONLY domain__domain_option
-    ADD CONSTRAINT domain_id_fkey FOREIGN KEY (domain_id) 
-    	REFERENCES domain(domain_id) DEFERRABLE;
-
-update domain set domain_since=domain_filed;
-
-alter table domain drop column domain_free;
-alter table domain drop column domain_until;
-alter table domain drop column domain_filed;
-alter table domain drop column domain_reminder;
-alter table domain drop column domain_template;
-alter table domain drop column domain_status;
-alter table domain drop column domain_status_changed;
-
-
-

--
Gitblit v1.9.0-SNAPSHOT