New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Currency improvements #1780

Merged
merged 15 commits into from Dec 7, 2015

Update Sql

  • Loading branch information...
gillesbourgeat committed Nov 26, 2015
commit 6ee490b6149ffeca88cef4dcf4b2962ae1baf00c
@@ -6,6 +6,16 @@ UPDATE `config` SET `value`='3' WHERE `name`='thelia_minus_version';
UPDATE `config` SET `value`='0' WHERE `name`='thelia_release_version';
UPDATE `config` SET `value`='alpha1' WHERE `name`='thelia_extra_version';
-- Add new column in module_hook table
ALTER TABLE `module_hook` ADD `templates` TEXT AFTER`position`;
-- Add new columns in currency table
ALTER TABLE `currency` ADD `format` CHAR( 10 ) NOT NULL AFTER `symbol`;
ALTER TABLE `currency` ADD `visible` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `rate`;
-- Update currencies
UPDATE `currency` SET `visible` = 1 WHERE 1;
UPDATE `currency` SET `format` = '%n %s' WHERE `code` NOT IN ('USD', 'GBP');
UPDATE `currency` SET `format` = '%s%n' WHERE `code` IN ('USD', 'GBP');
SET FOREIGN_KEY_CHECKS = 1;
@@ -6,6 +6,16 @@ UPDATE `config` SET `value`='3' WHERE `name`='thelia_minus_version';
UPDATE `config` SET `value`='0' WHERE `name`='thelia_release_version';
UPDATE `config` SET `value`='alpha1' WHERE `name`='thelia_extra_version';
-- Add new column in module_hook table
ALTER TABLE `module_hook` ADD `templates` TEXT AFTER`position`;
-- Add new columns in currency table
ALTER TABLE `currency` ADD `format` CHAR( 10 ) NOT NULL AFTER `symbol`;
ALTER TABLE `currency` ADD `visible` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `rate`;
-- Update currencies
UPDATE `currency` SET `visible` = 1 WHERE 1;
UPDATE `currency` SET `format` = '%n %s' WHERE `code` NOT IN ('USD', 'GBP');
UPDATE `currency` SET `format` = '%s%n' WHERE `code` IN ('USD', 'GBP');
SET FOREIGN_KEY_CHECKS = 1;
ProTip! Use n and p to navigate between commits in a pull request.