From: Kurund Jalmi Date: Thu, 27 Jun 2013 10:44:40 +0000 (+0530) Subject: worked on CRM-12964, added new table for labels X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bc91fa05148128073e115b562493c36f1007ab17;p=civicrm-core.git worked on CRM-12964, added new table for labels --- diff --git a/.gitignore b/.gitignore index 577c7ce295..26f864c466 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/tests/phpunit/CiviTest/truncate.xml b/tests/phpunit/CiviTest/truncate.xml index 99c32a0d9f..88f6ced3bd 100644 --- a/tests/phpunit/CiviTest/truncate.xml +++ b/tests/phpunit/CiviTest/truncate.xml @@ -149,6 +149,8 @@ + + diff --git a/xml/schema/Core/PrintLabel.xml b/xml/schema/Core/PrintLabel.xml new file mode 100644 index 0000000000..6a79f1ab43 --- /dev/null +++ b/xml/schema/Core/PrintLabel.xml @@ -0,0 +1,100 @@ + + + + CRM/Core + PrintLabel + civicrm_print_label + Table to store the labels created by user. + 4.4 + + id + int unsigned + true + 4.4 + + + id + true + + + title + Title + varchar + 255 + User title for for this label layout + 4.4 + + + name + Name + varchar + 255 + variable name/programmatic handle for this field. + 4.4 + + + description + text + Description of this label layout + 4.4 + + + label_format_id + int unsigned + Implicit FK to civicrm_option_value row in label_format option group + 4.4 + + + label_type_id + int unsigned + Implicit FK to civicrm_option_value row in NEW label_type option group + 4.4 + + + data + longtext + contains json encode configurations options + 4.4 + + + html + longtext + Label contents in HTML format with tokens and image file references + 4.4 + + + is_default + boolean + 1 + Is this default? + 4.4 + + + is_active + boolean + 1 + Is this option active? + 4.4 + + + is_reserved + boolean + 1 + Is this reserved label? + 4.4 + + + created_id + int unsigned + Created By Contact ID + FK to civicrm_contact, who created this label layout + 4.4 + + + created_id +
civicrm_contact
+ id + 4.4 + SET NULL + + diff --git a/xml/schema/Core/files.xml b/xml/schema/Core/files.xml index 51cdfff680..b75e9800fa 100644 --- a/xml/schema/Core/files.xml +++ b/xml/schema/Core/files.xml @@ -51,4 +51,5 @@ +