SELECT @option_group_id_udOpt_val := MAX(CAST( `value` AS UNSIGNED )) FROM civicrm_option_value WHERE option_group_id = @option_group_id_udOpt;
INSERT INTO
- `civicrm_option_value` (`option_group_id`, {localize field='label'}`label`{/localize}, `value`, `name`, `grouping`, `filter`, `is_default`, `weight`, {localize field='description'}`description`{/localize}, `is_optgroup`, `is_reserved`, `is_active`, `component_id`, `visibility_id`)
+ `civicrm_option_value` (`option_group_id`, {localize field='label'}`label`{/localize}, `value`, `name`, `grouping`, `filter`, `is_default`, `weight`, `is_optgroup`, `is_reserved`, `is_active`, `component_id`, `visibility_id`)
VALUES
- (@option_group_id_udOpt, {localize}'{ts escape="sql"}Invoices / Credit Notes{/ts}'{/localize}, @option_group_id_udOpt_val+1, 'Invoices / Credit Notes', NULL, 0, NULL, @option_group_id_udOpt_wt+1, NULL, 0, 0, 1, NULL, NULL);
+ (@option_group_id_udOpt, {localize}'{ts escape="sql"}Invoices / Credit Notes{/ts}'{/localize}, @option_group_id_udOpt_val+1, 'Invoices / Credit Notes', NULL, 0, NULL, @option_group_id_udOpt_wt+1, 0, 0, 1, NULL, NULL);
-- Add new column creditnote_id in contribution table
ALTER TABLE `civicrm_contribution` ADD `creditnote_id` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'unique credit note id, system generated or passed in';
--- /dev/null
+{* file to handle db changes in 4.6.alpha2 during upgrade *}
DM_TMPDIR= <Set this to temporary directory>
DM_TARGETDIR= <Set this to directory where tarballs should land>
-DM_NPM= <Set this to your npm binary>
-DM_PHP= <Set this to your php binary>
-DM_RSYNC= <set this to your rsync binary>
-DM_ZIP= <set this to your zip binary>
+## Optional
+# DM_PHP= <Set this to your php binary> [default: php]
+# DM_RSYNC= <set this to your rsync binary> [default: rsync]
+# DM_ZIP= <set this to your zip binary> [default: zip]
+# DM_NPM= <Set this to your npm binary> [default: npm]
+# DM_NODE= <Set this to your node binary> [default: node]
+# DM_COMPOSER= <Set this to your composer binary> [default: composer]
DM_VERSION= <Set this to whatever the version number should be>
esac
-## Install npm packages
-dm_npm_install "$DM_SOURCEDIR"
-
## Make sure we have the right branch or tag
dm_git_checkout "$DM_SOURCEDIR" "$DM_REF_CORE"
dm_git_checkout "$DM_SOURCEDIR/packages" "$DM_REF_PACKAGES"
## Get latest dependencies
dm_generate_vendor "$DM_SOURCEDIR"
+dm_generate_bower "$DM_SOURCEDIR"
# Before anything - regenerate DAOs
cd $DM_SOURCEDIR/xml
-$DM_PHP GenCode.php schema/Schema.xml $DM_VERSION
+${DM_PHP:-php} GenCode.php schema/Schema.xml $DM_VERSION
cd $ORIGPWD
if [ ! -d "$to" ]; then
mkdir -p "$to"
fi
- $DM_RSYNC -avC --exclude=.git --exclude=.svn "$from/./" "$to/./"
+ ${DM_RSYNC:-rsync} -avC --exclude=.git --exclude=.svn "$from/./" "$to/./"
}
## Copy listed files
done
}
+## Copy all bower dependencies
+function dm_install_bower() {
+ local repo="$1"
+ local to="$2"
+
+ local excludes_rsync=""
+ for exclude in .git .svn {T,t}est{,s} {D,d}oc{,s} {E,e}xample{,s} ; do
+ excludes_rsync="--exclude=${exclude} ${excludes_rsync}"
+ done
+
+ [ ! -d "$to" ] && mkdir "$to"
+ ${DM_RSYNC:-rsync} -avC $excludes_rsync "$repo/./" "$to/./"
+}
+
## Copy all core files
## usage: dm_install_core <core_repo_path> <to_path>
function dm_install_core() {
local repo="$1"
local to="$2"
- for dir in css i js PEAR templates bin CRM api extern Reports install settings Civi partials node_modules bower_components ; do
+ for dir in css i js PEAR templates bin CRM api extern Reports install settings Civi partials ; do
[ -d "$repo/$dir" ] && dm_install_dir "$repo/$dir" "$to/$dir"
done
dm_install_files "$repo" "$to" {agpl-3.0,agpl-3.0.exception,gpl,README,CONTRIBUTORS}.txt
+ dm_install_files "$repo" "$to" composer.json composer.lock bower.json package.json
mkdir -p "$to/sql"
pushd "$repo" >> /dev/null
## packages/Files packages/PHP packages/Text
[ ! -d "$to" ] && mkdir "$to"
- $DM_RSYNC -avC $excludes_rsync --include=core "$repo/./" "$to/./"
+ ${DM_RSYNC:-rsync} -avC $excludes_rsync --include=core "$repo/./" "$to/./"
}
## Copy Drupal-integration module
excludes_rsync="--exclude=${exclude} ${excludes_rsync}"
done
- ## Note: These small folders have items that previously were not published,
- ## but there's no real cost to including them, and excluding them seems
- ## likely to cause confusion as the codebase evolves:
- ## packages/Files packages/PHP packages/Text
-
[ ! -d "$to" ] && mkdir "$to"
- $DM_RSYNC -avC $excludes_rsync --include=core "$repo/./" "$to/./"
+ ${DM_RSYNC:-rsync} -avC $excludes_rsync "$repo/./" "$to/./"
}
## usage: dm_install_wordpress <wp_repo_path> <to_path>
if [ ! -d "$to" ]; then
mkdir -p "$to"
fi
- $DM_RSYNC -avC \
+ ${DM_RSYNC:-rsync} -avC \
--exclude=.git \
--exclude=.svn \
--exclude=civicrm.config.php.wordpress \
## Need --exclude=civicrm for self-building on WP site
}
+
+## Generate the "bower_components" folder.
+## usage: dm_generate_bower <repo_path>
+function dm_generate_bower() {
+ local repo="$1"
+ pushd "$repo"
+ ${DM_NPM:-npm} install
+ ${DM_NODE:-node} node_modules/bower/bin/bower install
+ popd
+}
+
## Generate the composer "vendor" folder
## usage: dm_generate_vendor <repo_path>
function dm_generate_vendor() {
local repo="$1"
pushd "$repo"
- composer install
+ ${DM_COMPOSER:-composer} install
popd
}
git checkout "$2"
popd
}
-
-## Install npm packages
-## usage: dm_npm_install <path>
-function dm_npm_install() {
- pushd "$1"
- $DM_NPM install
- popd
-}
dm_install_core "$SRC" "$TRG"
dm_install_packages "$SRC/packages" "$TRG/packages"
dm_install_vendor "$SRC/vendor" "$TRG/vendor"
+dm_install_bower "$SRC/bower_components" "$TRG/bower_components"
dm_install_drupal "$SRC/drupal" "$TRG/drupal"
# gen tarball
dm_install_core "$SRC" "$TRG"
dm_install_packages "$SRC/packages" "$TRG/packages"
dm_install_vendor "$SRC/vendor" "$TRG/vendor"
+dm_install_bower "$SRC/bower_components" "$TRG/bower_components"
dm_install_drupal "$SRC/drupal" "$TRG/drupal"
# gen tarball
dm_install_core "$SRC" "$TRG"
dm_install_packages "$SRC/packages" "$TRG/packages"
dm_install_vendor "$SRC/vendor" "$TRG/vendor"
+dm_install_bower "$SRC/bower_components" "$TRG/bower_components"
dm_install_drupal "$SRC/drupal" "$TRG/drupal"
# delete packages that distributions on Drupal.org repalce if present
dm_install_core "$SRC" "$TRG"
dm_install_packages "$SRC/packages" "$TRG/packages"
dm_install_vendor "$SRC/vendor" "$TRG/vendor"
+dm_install_bower "$SRC/bower_components" "$TRG/bower_components"
## WTF: It's so good we'll install it twice!
## (The first is probably extraneous, but there could be bugs dependent on it.)
# generate alt version of package
cp -r -p civicrm com_civicrm/admin/civicrm
-$DM_PHP $DM_SOURCEDIR/distmaker/utils/joomlaxml.php $DM_SOURCEDIR com_civicrm $DM_VERSION alt
-$DM_ZIP -q -r -9 $DM_TARGETDIR/civicrm-$DM_VERSION-joomla-alt.zip com_civicrm
+${DM_PHP:-php} $DM_SOURCEDIR/distmaker/utils/joomlaxml.php $DM_SOURCEDIR com_civicrm $DM_VERSION alt
+${DM_ZIP:-zip} -q -r -9 $DM_TARGETDIR/civicrm-$DM_VERSION-joomla-alt.zip com_civicrm
rm -rf com_civicrm/admin/civicrm
# generate zip version of civicrm.xml
-$DM_PHP $DM_SOURCEDIR/distmaker/utils/joomlaxml.php $DM_SOURCEDIR com_civicrm $DM_VERSION zip
-$DM_ZIP -q -r -9 com_civicrm/admin/civicrm.zip civicrm
-$DM_ZIP -q -r -9 $DM_TARGETDIR/civicrm-$DM_VERSION-joomla.zip com_civicrm -x 'com_civicrm/admin/civicrm'
+${DM_PHP:-php} $DM_SOURCEDIR/distmaker/utils/joomlaxml.php $DM_SOURCEDIR com_civicrm $DM_VERSION zip
+${DM_ZIP:-zip} -q -r -9 com_civicrm/admin/civicrm.zip civicrm
+${DM_ZIP:-zip} -q -r -9 $DM_TARGETDIR/civicrm-$DM_VERSION-joomla.zip com_civicrm -x 'com_civicrm/admin/civicrm'
# clean up
rm -rf com_civicrm
dm_install_core "$SRC" "$TRG/civicrm/civicrm"
dm_install_packages "$SRC/packages" "$TRG/civicrm/civicrm/packages"
dm_install_vendor "$SRC/vendor" "$TRG/civicrm/civicrm/vendor"
+dm_install_bower "$SRC/bower_components" "$TRG/civicrm/civicrm/bower_components"
dm_install_wordpress "$SRC/WordPress" "$TRG/civicrm"
# gen tarball
cd $TRG
-$DM_ZIP -r -9 $DM_TARGETDIR/civicrm-$DM_VERSION-wordpress.zip *
+${DM_ZIP:-zip} -r -9 $DM_TARGETDIR/civicrm-$DM_VERSION-wordpress.zip *
# clean up
rm -rf $TRG
LOCK TABLES `civicrm_domain` WRITE;
/*!40000 ALTER TABLE `civicrm_domain` DISABLE KEYS */;
-INSERT INTO `civicrm_domain` (`id`, `name`, `description`, `config_backend`, `version`, `contact_id`, `locales`, `locale_custom_strings`) VALUES (1,'Default Domain Name',NULL,NULL,'4.6.alpha1',1,NULL,'a:1:{s:5:\"en_US\";a:0:{}}');
+INSERT INTO `civicrm_domain` (`id`, `name`, `description`, `config_backend`, `version`, `contact_id`, `locales`, `locale_custom_strings`) VALUES (1,'Default Domain Name',NULL,NULL,'4.6.alpha2',1,NULL,'a:1:{s:5:\"en_US\";a:0:{}}');
/*!40000 ALTER TABLE `civicrm_domain` ENABLE KEYS */;
UNLOCK TABLES;
<tr class="crm-smtp-form-block-smtpServer">
<td class="label">{$form.smtpServer.label}</td>
<td>{$form.smtpServer.html}<br />
- <span class="description">{ts}Enter the SMTP server (machine) name. EXAMPLE: smtp.example.com{/ts}</span>
+ <span class="description">{ts}Enter the SMTP server (machine) name, such as "smtp.example.com". If the server uses SSL, add "ssl://" to the beginning of the server name, such as "ssl://smtp.example.com".{/ts}</span>
</td>
</tr>
<tr class="crm-smtp-form-block-smtpPort">
<td class="label">{$form.smtpPort.label}</td>
<td>{$form.smtpPort.html}<br />
- <span class="description">{ts}The standard SMTP port is 25. You should only change that value if your SMTP server is running on a non-standard port.{/ts}</span>
+ <span class="description">{ts}The most common SMTP port possibilities are 25, 465, and 587. Check with your mail provider for the appropriate one.{/ts}</span>
</td>
</tr>
<tr class="crm-smtp-form-block-smtpAuth">
(3053, 1099, "TB", "Tatabánya"),
(3054, 1099, "ZE", "Zalaegerszeg"),
(3055, 1102, "BA", "Bali"),
-(3056, 1102, "BB", "Kepulauan Bangka Belitung"), -- changed from "Bangka Belitung"
+(3056, 1102, "BB", "Kepulauan Bangka Belitung"),
(3057, 1102, "BT", "Banten"),
(3058, 1102, "BE", "Bengkulu"),
(3059, 1102, "GO", "Gorontalo"),
-(3060, 1102, "PB", "Papua Barat"), -- changed from "IJ" and "Irian Jaya"
+(3060, 1102, "PB", "Papua Barat"),
(3061, 1102, "JA", "Jambi"),
(3062, 1102, "JB", "Jawa Barat"),
(3063, 1102, "JT", "Jawa Tengah"),
(3064, 1102, "JI", "Jawa Timur"),
(3065, 1102, "KB", "Kalimantan Barat"),
-(3066, 1102, "KI", "Kalimantan Timur"), -- updated abbreviation
+(3066, 1102, "KI", "Kalimantan Timur"),
(3067, 1102, "KS", "Kalimantan Selatan"),
(3068, 1102, "KR", "Kepulauan Riau"),
(3069, 1102, "LA", "Lampung"),
(3080, 1102, "SB", "Sumatra Barat"),
(3081, 1102, "SS", "Sumatra Selatan"),
(3082, 1102, "SU", "Sumatera Utara"),
-(3083, 1102, "JK", "DKI Jakarta"), -- changed from "Jakarta Raya"
+(3083, 1102, "JK", "DKI Jakarta"),
(3084, 1102, "AC", "Aceh"),
-(3085, 1102, "YO", "DI Yogyakarta"), -- changed from "Yogyakarta"
+(3085, 1102, "YO", "DI Yogyakarta"),
(3086, 1105, "C", "Cork"),
(3087, 1105, "CE", "Clare"),
(3088, 1105, "CN", "Cavan"),
(5215, 1165, "_O", "Khan Yunis"),
(5216, 1165, "_P", "Rafah"),
-(5217, 1020, "BRU", "Brussels"), -- missing Belgian province (CRM-3609)
+(5217, 1020, "BRU", "Brussels"),
-(5218, 1140, "DIF", "Distrito Federal"), -- missing Mexican province (CRM-4534)
+(5218, 1140, "DIF", "Distrito Federal"),
(5219, 1208, "TXG", "Taichung City"),
(5220, 1208, "KHH", "Kaohsiung City"),
(5221, 1208, "TPE", "Taipei City"),
(NULL, 1169, "AMA", "Amazonas"),
-- Add missing Indonesian provinces (Kalimantan Tengah, Sulawesi Barat, Kalimantan Utara) and revised outdated names in code above
-(NULL, 1102, "KT", "Kalimantan Tengah"), -- added, updated abbreviation
-(NULL, 1102, "SR", "Sulawesi Barat"), -- added, updated abbreviation
-(NULL, 1102, "KU", "Kalimantan Utara"); -- added
\ No newline at end of file
+(NULL, 1102, "KT", "Kalimantan Tengah"),
+(NULL, 1102, "SR", "Sulawesi Barat"),
+(NULL, 1102, "KU", "Kalimantan Utara");
\ No newline at end of file
<?xml version="1.0" encoding="iso-8859-1" ?>
<version>
- <version_no>4.6.alpha1</version_no>
+ <version_no>4.6.alpha2</version_no>
</version>