worked on CRM-12964, added new table for labels
authorKurund Jalmi <kurund@civicrm.org>
Thu, 27 Jun 2013 10:44:40 +0000 (16:14 +0530)
committerKurund Jalmi <kurund@civicrm.org>
Thu, 27 Jun 2013 10:44:40 +0000 (16:14 +0530)
.gitignore
tests/phpunit/CiviTest/truncate.xml
xml/schema/Core/PrintLabel.xml [new file with mode: 0644]
xml/schema/Core/files.xml

index 577c7ce295a673355812a3553f711c0fa0dcea65..26f864c466e0b56fb9e6d66bf7bfd0d034d56eaf 100644 (file)
@@ -76,6 +76,7 @@ CRM/Core/DAO/PrevNextCache.php
 CRM/Core/DAO/PriceField.php
 CRM/Core/DAO/PriceSet.php
 CRM/Core/DAO/PriceSetEntity.php
+CRM/Core/DAO/PrintLabel.php
 CRM/Core/DAO/Setting.php
 CRM/Core/DAO/StateProvince.php
 CRM/Core/DAO/Tag.php
index 99c32a0d9fc3893dc4369897e0519beb27eb6559..88f6ced3bdad31d5c634a4f7d071b80fcd8dc5c9 100644 (file)
 
   <civicrm_setting />
 
+  <civicrm_print_label />
+
   <civicrm_acl_cache />
 
   <civicrm_group />
diff --git a/xml/schema/Core/PrintLabel.xml b/xml/schema/Core/PrintLabel.xml
new file mode 100644 (file)
index 0000000..6a79f1a
--- /dev/null
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="iso-8859-1" ?>
+
+<table>
+  <base>CRM/Core</base>
+  <class>PrintLabel</class>
+  <name>civicrm_print_label</name>
+  <comment>Table to store the labels created by user.</comment>
+  <add>4.4</add>
+  <field>
+    <name>id</name>
+    <type>int unsigned</type>
+    <required>true</required>
+    <add>4.4</add>
+  </field>
+  <primaryKey>
+    <name>id</name>
+    <autoincrement>true</autoincrement>
+  </primaryKey>
+  <field>
+    <name>title</name>
+    <title>Title</title>
+    <type>varchar</type>
+    <length>255</length>
+    <comment>User title for for this label layout</comment>
+    <add>4.4</add>
+  </field>
+  <field>
+    <name>name</name>
+    <title>Name</title>
+    <type>varchar</type>
+    <length>255</length>
+    <comment>variable name/programmatic handle for this field.</comment>
+    <add>4.4</add>
+  </field>
+  <field>
+    <name>description</name>
+    <type>text</type>
+    <comment>Description of this label layout</comment>
+    <add>4.4</add>
+  </field>
+  <field>
+    <name>label_format_id</name>
+    <type>int unsigned</type>
+    <comment>Implicit FK to civicrm_option_value row in label_format option group</comment>
+    <add>4.4</add>
+  </field>
+  <field>
+    <name>label_type_id</name>
+    <type>int unsigned</type>
+    <comment>Implicit FK to civicrm_option_value row in NEW label_type option group</comment>
+    <add>4.4</add>
+  </field>
+  <field>
+    <name>data</name>
+    <type>longtext</type>
+    <comment>contains json encode configurations options</comment>
+    <add>4.4</add>
+  </field>
+  <field>
+    <name>html</name>
+    <type>longtext</type>
+    <comment>Label contents in HTML format with tokens and image file references</comment>
+    <add>4.4</add>
+  </field>
+  <field>
+    <name>is_default</name>
+    <type>boolean</type>
+    <default>1</default>
+    <comment>Is this default?</comment>
+    <add>4.4</add>
+  </field>
+  <field>
+    <name>is_active</name>
+    <type>boolean</type>
+    <default>1</default>
+    <comment>Is this option active?</comment>
+    <add>4.4</add>
+  </field>
+  <field>
+    <name>is_reserved</name>
+    <type>boolean</type>
+    <default>1</default>
+    <comment>Is this reserved label?</comment>
+    <add>4.4</add>
+  </field>
+  <field>
+    <name>created_id</name>
+    <type>int unsigned</type>
+    <title>Created By Contact ID</title>
+    <comment>FK to civicrm_contact, who created this label layout</comment>
+    <add>4.4</add>
+  </field>
+  <foreignKey>
+    <name>created_id</name>
+    <table>civicrm_contact</table>
+    <key>id</key>
+    <add>4.4</add>
+    <onDelete>SET NULL</onDelete>
+  </foreignKey>
+</table>
index 51cdfff6805b1ec2b6043ccfad4db966c1616bd5..b75e9800fa421eb327e5f7b5975baa342b175913 100644 (file)
@@ -51,4 +51,5 @@
   <xi:include href="ActionSchedule.xml"       parse="xml" />
   <xi:include href="ActionLog.xml"            parse="xml" />
   <xi:include href="Setting.xml"              parse="xml" />
+  <xi:include href="PrintLabel.xml"           parse="xml" />
 </tables>