From 6219b1e6cfe6487d539beec97c12c3d4c2672965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20L=C3=B8vgaard?= Date: Tue, 17 Dec 2019 08:14:49 +0100 Subject: [PATCH 1/5] Be explicit about column names --- src/Resources/config/doctrine/CreditMemo.orm.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Resources/config/doctrine/CreditMemo.orm.xml b/src/Resources/config/doctrine/CreditMemo.orm.xml index dfa6ca4a..4acab143 100644 --- a/src/Resources/config/doctrine/CreditMemo.orm.xml +++ b/src/Resources/config/doctrine/CreditMemo.orm.xml @@ -10,7 +10,7 @@ - + @@ -37,7 +37,7 @@ - + From de7f8daf67e84eddea0c7c177280676d1caa86fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20L=C3=B8vgaard?= Date: Tue, 17 Dec 2019 08:45:28 +0100 Subject: [PATCH 2/5] Be consistent about column names in credit memo --- src/Resources/config/doctrine/CreditMemo.orm.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Resources/config/doctrine/CreditMemo.orm.xml b/src/Resources/config/doctrine/CreditMemo.orm.xml index 4acab143..d7090e9c 100644 --- a/src/Resources/config/doctrine/CreditMemo.orm.xml +++ b/src/Resources/config/doctrine/CreditMemo.orm.xml @@ -13,8 +13,8 @@ - - + + From c23b38e2e1e9a4325df7c3a19a36241611a85704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20L=C3=B8vgaard?= Date: Tue, 17 Dec 2019 08:46:34 +0100 Subject: [PATCH 3/5] Be consistent about column names in refund --- src/Resources/config/doctrine/Refund.orm.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/config/doctrine/Refund.orm.xml b/src/Resources/config/doctrine/Refund.orm.xml index 608f6c7f..25da7280 100644 --- a/src/Resources/config/doctrine/Refund.orm.xml +++ b/src/Resources/config/doctrine/Refund.orm.xml @@ -11,7 +11,7 @@ - + From f62c4e256d92358bdab832ba686df5183753018b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20L=C3=B8vgaard?= Date: Tue, 17 Dec 2019 08:54:35 +0100 Subject: [PATCH 4/5] Fixed error: Root image path not resolvable "/path/to/project/public/media/image" --- tests/Application/public/media/image/.gitignore | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 tests/Application/public/media/image/.gitignore diff --git a/tests/Application/public/media/image/.gitignore b/tests/Application/public/media/image/.gitignore new file mode 100644 index 00000000..e69de29b From 258be3c0b51def90557047de385fd574337c3060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20L=C3=B8vgaard?= Date: Tue, 17 Dec 2019 09:01:56 +0100 Subject: [PATCH 5/5] Added migration --- migrations/Version20191217075815.php | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 migrations/Version20191217075815.php diff --git a/migrations/Version20191217075815.php b/migrations/Version20191217075815.php new file mode 100644 index 00000000..b079ac1a --- /dev/null +++ b/migrations/Version20191217075815.php @@ -0,0 +1,31 @@ +abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); + + $this->addSql('DROP INDEX IDX_5C4F3331989A8203 ON sylius_refund_credit_memo'); + $this->addSql('ALTER TABLE sylius_refund_credit_memo CHANGE orderNumber order_number VARCHAR(255) NOT NULL, CHANGE currencyCode currency_code VARCHAR(255) NOT NULL, CHANGE localeCode locale_code VARCHAR(255) NOT NULL'); + $this->addSql('CREATE INDEX IDX_5C4F3331551F0F81 ON sylius_refund_credit_memo (order_number)'); + $this->addSql('ALTER TABLE sylius_refund_refund CHANGE ordernumber order_number VARCHAR(255) NOT NULL'); + } + + public function down(Schema $schema) : void + { + $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); + + $this->addSql('DROP INDEX IDX_5C4F3331551F0F81 ON sylius_refund_credit_memo'); + $this->addSql('ALTER TABLE sylius_refund_credit_memo CHANGE order_number orderNumber VARCHAR(255) CHARACTER SET utf8 NOT NULL COLLATE `utf8_unicode_ci`, CHANGE currency_code currencyCode VARCHAR(255) CHARACTER SET utf8 NOT NULL COLLATE `utf8_unicode_ci`, CHANGE locale_code localeCode VARCHAR(255) CHARACTER SET utf8 NOT NULL COLLATE `utf8_unicode_ci`'); + $this->addSql('CREATE INDEX IDX_5C4F3331989A8203 ON sylius_refund_credit_memo (orderNumber)'); + $this->addSql('ALTER TABLE sylius_refund_refund CHANGE order_number orderNumber VARCHAR(255) CHARACTER SET utf8 NOT NULL COLLATE `utf8_unicode_ci`'); + } +}