Skip to content
Snippets Groups Projects
Commit bc91fa05 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

worked on CRM-12964, added new table for labels

parent 6bc3f2dc
Branches
Tags
No related merge requests found
......@@ -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
......
......@@ -149,6 +149,8 @@
<civicrm_setting />
<civicrm_print_label />
<civicrm_acl_cache />
<civicrm_group />
......
<?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>
......@@ -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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment