]> ruin.nu Git - ndwebbie.git/blobdiff - database/ndawn.sql
Make use of the newish planet id from stats
[ndwebbie.git] / database / ndawn.sql
index 40722c273a4661093ab401d87bf6a81519e9f909..5567337c58914e035be38b2d174c2ef4a6cc7702 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,