From 44e6219df519a51dfb3bd2fde30cd06fb3b0d8a8 Mon Sep 17 00:00:00 2001 From: vicent Date: Fri, 28 Jan 2022 09:30:54 +0100 Subject: [PATCH 1/2] update table companyGroup --- db/changes/10410-january/00-companyGroup.sql | 12 ++++++++++++ db/dump/fixtures.sql | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 db/changes/10410-january/00-companyGroup.sql diff --git a/db/changes/10410-january/00-companyGroup.sql b/db/changes/10410-january/00-companyGroup.sql new file mode 100644 index 000000000..2c5477e63 --- /dev/null +++ b/db/changes/10410-january/00-companyGroup.sql @@ -0,0 +1,12 @@ +UPDATE `vn`.`companyGroup` + SET `code`='verdnatura' + WHERE `id`=1; +UPDATE `vn`.`companyGroup` + SET `code`='ornamental' + WHERE `id`=2; +UPDATE `vn`.`companyGroup` + SET `code`='other' + WHERE `id`=3; +UPDATE `vn`.`companyGroup` + SET `code`='provisional' + WHERE `id`=4; diff --git a/db/dump/fixtures.sql b/db/dump/fixtures.sql index efe7906ce..ed03cba1e 100644 --- a/db/dump/fixtures.sql +++ b/db/dump/fixtures.sql @@ -456,7 +456,7 @@ INSERT INTO `vn`.`creditInsurance`(`id`, `creditClassification`, `credit`, `crea INSERT INTO `vn`.`companyGroup`(`id`, `code`) VALUES (1, 'wayneIndustries'), - (2, 'Verdnatura'); + (2, 'verdnatura'); INSERT INTO `vn`.`bankEntity`(`id`, `countryFk`, `name`, `bic`) VALUES From d30e8d9bcc3f3d3630361c7e17c7cf814ec6e8d3 Mon Sep 17 00:00:00 2001 From: joan Date: Fri, 28 Jan 2022 14:50:19 +0100 Subject: [PATCH 2/2] Removed already uploaded changes --- db/changes/10411-january/00-smsConfig.sql | 5 ----- db/changes/10411-january/01-smsConfig_update.sql | 7 ------- 2 files changed, 12 deletions(-) delete mode 100644 db/changes/10411-january/00-smsConfig.sql delete mode 100644 db/changes/10411-january/01-smsConfig_update.sql diff --git a/db/changes/10411-january/00-smsConfig.sql b/db/changes/10411-january/00-smsConfig.sql deleted file mode 100644 index b3f1610d4..000000000 --- a/db/changes/10411-january/00-smsConfig.sql +++ /dev/null @@ -1,5 +0,0 @@ -ALTER TABLE `vn`.`smsConfig` ADD apiKey varchar(50) NULL; -ALTER TABLE `vn`.`smsConfig` CHANGE `user` user__ varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL; -ALTER TABLE `vn`.`smsConfig` CHANGE password password__ varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL; -ALTER TABLE `vn`.`sms` MODIFY COLUMN statusCode smallint(9) DEFAULT 0 NULL; -ALTER TABLE `vn`.`sms` MODIFY COLUMN status varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT 'OK' NULL; diff --git a/db/changes/10411-january/01-smsConfig_update.sql b/db/changes/10411-january/01-smsConfig_update.sql deleted file mode 100644 index c4b4c895e..000000000 --- a/db/changes/10411-january/01-smsConfig_update.sql +++ /dev/null @@ -1,7 +0,0 @@ -UPDATE `vn`.`smsConfig` - SET `uri` = 'https://api.gateway360.com/api/3.0/sms/send' - WHERE `id` = 1; - -UPDATE `vn`.`smsConfig` - SET `apiKey` = '5715476da95b46d686a5a255e6459523' - WHERE `id` = 1; \ No newline at end of file