]> ruin.nu Git - ndwebbie.git/blobdiff - database/ndawn.sql
ruler and planet name don't need to be unique anymore
[ndwebbie.git] / database / ndawn.sql
index 40722c273a4661093ab401d87bf6a81519e9f909..177a3f9139ea61b381ef72492e0bfc3082bbcdcb 100644 (file)
@@ -773,6 +773,8 @@ CREATE TABLE planets (
 )
 WITH (fillfactor='50');
 
+ALTER TABLE planets ADD COLUMN id text UNIQUE NOT NULL;
+
 
 ALTER TABLE planets OWNER TO ndawn;
 
@@ -1001,7 +1003,7 @@ CREATE TABLE users (
     uid integer NOT NULL,
     username citext NOT NULL,
     pid integer,
-    password text NOT NULL,
+    password text,
     attack_points numeric(3,0) DEFAULT 0 NOT NULL,
     defense_points numeric(4,1) DEFAULT 0 NOT NULL,
     scan_points numeric(5,0) DEFAULT 0 NOT NULL,
@@ -3060,14 +3062,6 @@ ALTER TABLE ONLY planets
     ADD CONSTRAINT planets_pkey PRIMARY KEY (pid);
 
 
---
--- Name: planets_ruler_key; Type: CONSTRAINT; Schema: public; Owner: ndawn
---
-
-ALTER TABLE ONLY planets
-    ADD CONSTRAINT planets_ruler_key UNIQUE (ruler, planet);
-
-
 --
 -- Name: raid_access_pkey; Type: CONSTRAINT; Schema: public; Owner: ndawn
 --