浏览代码

- updated from the master schema definition

Jan Janak 19 年之前
父节点
当前提交
390d5381ff

+ 1 - 0
scripts/dbtext/ser_db/cpl

@@ -0,0 +1 @@
+uid(str) cpl_xml(str,null) cpl_bin(str,null) 

+ 1 - 1
scripts/dbtext/ser_db/domain

@@ -1 +1 @@
-did(str) domain(str) last_modified(int) flags(int) 
+did(str) domain(str) flags(int) 

+ 7 - 1
scripts/mysql/my_create.sql

@@ -184,7 +184,6 @@ CREATE TABLE user_attrs (
 CREATE TABLE domain (
     did VARCHAR(64) NOT NULL,
     domain VARCHAR(128) NOT NULL,
-    last_modified timestamp NOT NULL DEFAULT '1970-01-01 00:00:00',
     flags INT UNSIGNED NOT NULL DEFAULT '0',
     UNIQUE KEY domain_idx (domain)
 );
@@ -528,6 +527,13 @@ CREATE TABLE pdt (
     UNIQUE KEY pdt_idx (prefix)
 );
 
+CREATE TABLE cpl (
+    uid VARCHAR(64) NOT NULL,
+    cpl_xml BLOB,
+    cpl_bin BLOB,
+    UNIQUE KEY cpl_key (uid)
+);
+
 CREATE TABLE customers (
     cid INT AUTO_INCREMENT NOT NULL,
     name VARCHAR(128) NOT NULL,

+ 7 - 1
scripts/oracle/or_create.sql

@@ -179,7 +179,6 @@ CREATE TABLE user_attrs (
 CREATE TABLE domain (
     did string(64) NOT NULL,
     domain string(128) NOT NULL,
-    last_modified datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
     flags int NOT NULL DEFAULT '0',
     domain_idx UNIQUE (domain, )
 );
@@ -512,6 +511,13 @@ CREATE TABLE pdt (
     pdt_idx UNIQUE (prefix, )
 );
 
+CREATE TABLE cpl (
+    uid string(64) NOT NULL,
+    cpl_xml binary,
+    cpl_bin binary,
+    cpl_key UNIQUE (uid, )
+);
+
 CREATE TABLE customers (
     cid int NOT NULL,
     name string(128) NOT NULL,

+ 9 - 3
scripts/postgres/pg_create.sql

@@ -188,7 +188,6 @@ CREATE TABLE user_attrs (
 CREATE TABLE domain (
     did VARCHAR(64) NOT NULL,
     domain VARCHAR(128) NOT NULL,
-    last_modified TIMESTAMP NOT NULL DEFAULT '1970-01-01 00:00:00',
     flags INTEGER NOT NULL DEFAULT '0',
     CONSTRAINT domain_idx UNIQUE (domain)
 );
@@ -544,6 +543,13 @@ CREATE TABLE pdt (
     CONSTRAINT pdt_idx UNIQUE (prefix)
 );
 
+CREATE TABLE cpl (
+    uid VARCHAR(64) NOT NULL,
+    cpl_xml BYTEA,
+    cpl_bin BYTEA,
+    CONSTRAINT cpl_key UNIQUE (uid)
+);
+
 CREATE TABLE customers (
     cid SERIAL NOT NULL,
     name VARCHAR(128) NOT NULL,
@@ -554,5 +560,5 @@ CREATE TABLE customers (
 );
 
 
-GRANT ALL ON version,acc,missed_calls,credentials,attr_types,global_attrs,domain_attrs,user_attrs,domain,location,trusted,phonebook,gw,gw_grp,lcr,grp,silo,uri,speed_dial,sd_attrs,presentity,presentity_notes,presentity_persons,presentity_contact,watcherinfo,tuple_notes,offline_winfo,rls_subscription,rls_vs,rls_vs_names,i18n,pdt,customers TO ser;
-GRANT SELECT ON version,acc,missed_calls,credentials,attr_types,global_attrs,domain_attrs,user_attrs,domain,location,trusted,phonebook,gw,gw_grp,lcr,grp,silo,uri,speed_dial,sd_attrs,presentity,presentity_notes,presentity_persons,presentity_contact,watcherinfo,tuple_notes,offline_winfo,rls_subscription,rls_vs,rls_vs_names,i18n,pdt,customers TO serro;
+GRANT ALL ON version,acc,missed_calls,credentials,attr_types,global_attrs,domain_attrs,user_attrs,domain,location,trusted,phonebook,gw,gw_grp,lcr,grp,silo,uri,speed_dial,sd_attrs,presentity,presentity_notes,presentity_persons,presentity_contact,watcherinfo,tuple_notes,offline_winfo,rls_subscription,rls_vs,rls_vs_names,i18n,pdt,cpl,customers TO ser;
+GRANT SELECT ON version,acc,missed_calls,credentials,attr_types,global_attrs,domain_attrs,user_attrs,domain,location,trusted,phonebook,gw,gw_grp,lcr,grp,silo,uri,speed_dial,sd_attrs,presentity,presentity_notes,presentity_persons,presentity_contact,watcherinfo,tuple_notes,offline_winfo,rls_subscription,rls_vs,rls_vs_names,i18n,pdt,cpl,customers TO serro;