Browse Source

created new attribute type for sending missed calls

Karel Kozlik 19 năm trước cách đây
mục cha
commit
bf17c71e12

+ 10 - 1
db/schema/attr_types.xml

@@ -298,6 +298,15 @@
          <value col="at.prior">1073807360</value>
 	 <value col="at.order">120</value>
     </row>
-
+    <row><value col="at.name">sw_send_missed</value>
+         <value col="at.type">0</value>
+         <value col="at.rich_t">boolean</value>
+         <value col="at.desc">@ff_send_daily_missed_calls</value>
+         <value col="at.d_flags">32</value>
+         <value col="at.flags">0</value>
+         <value col="at.prior">1073807616</value>
+         <value col="at.order">130</value>
+   </row>
+								       
 
 </table>

+ 1 - 0
scripts/dbtext/ser_db/attr_types

@@ -27,3 +27,4 @@ sw_is_hostmaster:boolean:0::hostmaster privilege:32:0:0:0
 sw_confirmation:string:2::registration confirmation:32:0:0:0
 sw_pending_ts:string:2::registration timestamp:32:0:0:0
 sw_require_conf:boolean:0::@ff_reg_confirmation:32:0:1073807360:120
+sw_send_missed:boolean:0::@ff_send_daily_missed_calls:32:0:1073807616:130

+ 1 - 0
scripts/mysql/my_create.sql

@@ -146,6 +146,7 @@ INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, f
 INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_confirmation', '2', 'string', 'registration confirmation', '32', '0', '0');
 INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_pending_ts', '2', 'string', 'registration timestamp', '32', '0', '0');
 INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('sw_require_conf', '0', 'boolean', '@ff_reg_confirmation', '32', '0', '1073807360', '120');
+INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('sw_send_missed', '0', 'boolean', '@ff_send_daily_missed_calls', '32', '0', '1073807616', '130');
 
 CREATE TABLE global_attrs (
     name VARCHAR(32) NOT NULL,

+ 1 - 0
scripts/oracle/or_create.sql

@@ -141,6 +141,7 @@ INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, f
 INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_confirmation', '2', 'string', 'registration confirmation', '32', '0', '0');
 INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_pending_ts', '2', 'string', 'registration timestamp', '32', '0', '0');
 INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('sw_require_conf', '0', 'boolean', '@ff_reg_confirmation', '32', '0', '1073807360', '120');
+INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('sw_send_missed', '0', 'boolean', '@ff_send_daily_missed_calls', '32', '0', '1073807616', '130');
 
 CREATE TABLE global_attrs (
     name string(32) NOT NULL,

+ 1 - 0
scripts/postgres/pg_create.sql

@@ -149,6 +149,7 @@ INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, f
 INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_confirmation', '2', 'string', 'registration confirmation', '32', '0', '0');
 INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_pending_ts', '2', 'string', 'registration timestamp', '32', '0', '0');
 INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('sw_require_conf', '0', 'boolean', '@ff_reg_confirmation', '32', '0', '1073807360', '120');
+INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('sw_send_missed', '0', 'boolean', '@ff_send_daily_missed_calls', '32', '0', '1073807616', '130');
 
 CREATE TABLE global_attrs (
     name VARCHAR(32) NOT NULL,