projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #15543 from MegaphoneJon/reporting-22
[civicrm-core.git]
/
xml
/
templates
/
schema.tpl
diff --git
a/xml/templates/schema.tpl
b/xml/templates/schema.tpl
index 7faeb14782d61ef94025feefa8bfb79a12a2b397..9a4e2ed49e6f2e2099b31e277183c5b721a60322 100644
(file)
--- a/
xml/templates/schema.tpl
+++ b/
xml/templates/schema.tpl
@@
-1,7
+1,7
@@
-- +--------------------------------------------------------------------+
-- +--------------------------------------------------------------------+
--- | CiviCRM version
4.7
|
+-- | CiviCRM version
5
|
-- +--------------------------------------------------------------------+
-- +--------------------------------------------------------------------+
--- | Copyright CiviCRM LLC (c) 2004-201
7
|
+-- | Copyright CiviCRM LLC (c) 2004-201
9
|
-- +--------------------------------------------------------------------+
-- | This file is a part of CiviCRM. |
-- | |
-- +--------------------------------------------------------------------+
-- | This file is a part of CiviCRM. |
-- | |
@@
-59,7
+59,8
@@
CREATE TABLE `{$table.name}` (
{if ! $first},{/if}
{assign var='first' value=false}
{if ! $first},{/if}
{assign var='first' value=false}
- PRIMARY KEY ( `{$table.primaryKey.name}` )
+ {assign var='firstIndexField' value=true}
+ PRIMARY KEY ({foreach from=$table.primaryKey.field item=fieldName}{if $firstIndexField}{assign var='firstIndexField' value=false}{else},{/if}`{$fieldName}`{/foreach})
{/if} {* table.primaryKey *}
{if $table.index}
{/if} {* table.primaryKey *}
{if $table.index}