sql/core_groups.sql
authorAlan Knowles <alan@roojs.com>
Fri, 7 Oct 2016 04:30:44 +0000 (12:30 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 7 Oct 2016 04:30:44 +0000 (12:30 +0800)
sql/core_groups.sql

index e69de29..107e132 100644 (file)
@@ -0,0 +1,22 @@
+
+
+
+-- used to be Groups .... we will need to flip all old code to use this...
+
+
+
+CREATE TABLE Groups (
+  id int(11) NOT NULL auto_increment,  
+  PRIMARY KEY   (id)
+);
+
+ALTER TABLE Groups ADD COLUMN name varchar(64)  NOT NULL DEFAULT '';
+ALTER TABLE Groups ADD COLUMN   type int(11)  NOT NULL DEFAULT 0;
+ALTER TABLE Groups ADD COLUMN leader int(11)  NOT NULL default 0;
+#old mysql..
+update Groups set type=0 where type is null;
+
+ALTER TABLE Groups CHANGE COLUMN type type int(11)  NOT NULL  default 0;
+
+
+