Fix source script phppos_migrate.sql too (#258)

This commit is contained in:
FrancescoUK
2016-02-05 09:05:57 +00:00
parent 6599ea6678
commit a0b422be34
3 changed files with 116 additions and 31 deletions

View File

@@ -750,6 +750,7 @@ SELECT `key`, `value` FROM `phppos`.phppos_app_config WHERE `key` = 'return_pol
--
-- Copy data to table `ospos_customers`
--
INSERT INTO `ospos_customers` (`person_id`, `account_number`, `taxable`, `deleted`)
SELECT `person_id`, `account_number`, `taxable`, `deleted` FROM `phppos`.phppos_customers;
UPDATE `ospos_customers` c1, `ospos_customers` c2 SET `c1`.`account_number` = NULL WHERE `c1`.`person_id` > `c2`.`person_id` AND `c1`.`account_number` = `c2`.`account_number`;