From a6aa87a5ee95bfabf9fadd6a588eef7a89000e7e Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Thu, 28 Sep 2023 13:01:16 +0200 Subject: [PATCH] Change RimoWorkorder colume `create_data` to mediumtext --- Layout/default/Preordercampaign/Admin.php | 2 +- ...er_rimoworkorder_createdata_mediumtext.php | 31 +++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 db/migrations/20230928105441_alter_rimoworkorder_createdata_mediumtext.php diff --git a/Layout/default/Preordercampaign/Admin.php b/Layout/default/Preordercampaign/Admin.php index 009c88ce2..936bbf220 100644 --- a/Layout/default/Preordercampaign/Admin.php +++ b/Layout/default/Preordercampaign/Admin.php @@ -108,7 +108,7 @@
diff --git a/db/migrations/20230928105441_alter_rimoworkorder_createdata_mediumtext.php b/db/migrations/20230928105441_alter_rimoworkorder_createdata_mediumtext.php new file mode 100644 index 000000000..e981e71f2 --- /dev/null +++ b/db/migrations/20230928105441_alter_rimoworkorder_createdata_mediumtext.php @@ -0,0 +1,31 @@ +getEnvironment() == "thetool") { + $table = $this->table("RimoWorkorder"); + $table->changeColumn("create_data", "text", ['limit' => Phinx\Db\Adapter\MysqlAdapter::TEXT_MEDIUM]); + $table->update(); + } + + if($this->getEnvironment() == "addressdb") { + + } + } + + public function down(): void + { + if($this->getEnvironment() == "thetool") { + + } + + if($this->getEnvironment() == "addressdb") { + + } + } +}