From c6c4abaea3b14c6b34f0f626200d7b4ac8340532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A6=D1=83=D1=80=D0=BA=D0=B0=D0=BD=20=D0=90=D0=BB=D0=B5?= =?UTF-8?q?=D0=BA=D1=81=D0=B5=D0=B9?= <49027190+alexeitsurkan@users.noreply.github.com> Date: Wed, 31 Aug 2022 11:49:17 +0300 Subject: [PATCH 1/2] Update MigrateController.php syntax bugfix --- console/controllers/MigrateController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/console/controllers/MigrateController.php b/console/controllers/MigrateController.php index f36c18d6d4..77654d5239 100644 --- a/console/controllers/MigrateController.php +++ b/console/controllers/MigrateController.php @@ -39,7 +39,7 @@ public function createMigrationHistoryTable() 'date' => 'Date', 'apply_time' => 'UInt32', 'is_deleted' => 'UInt8' //0 active 1 //deleted - ], 'ENGINE=ReplacingMergeTree(date, version, 8192, apply_time)')->execute(); + ], 'ENGINE=ReplacingMergeTree() ORDER BY date')->execute(); $this->addMigrationHistory(self::BASE_MIGRATION); $this->stdout("Done.\n", Console::FG_GREEN); @@ -143,4 +143,4 @@ private function insertHistory(string $version, bool $isDelete = false): void 'is_deleted' => (int) $isDelete ])->execute(); } -} \ No newline at end of file +} From c51c6389b02fc4b9e9abeabb5b5d8f3b72508e1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A6=D1=83=D1=80=D0=BA=D0=B0=D0=BD=20=D0=90=D0=BB=D0=B5?= =?UTF-8?q?=D0=BA=D1=81=D0=B5=D0=B9?= <49027190+alexeitsurkan@users.noreply.github.com> Date: Thu, 1 Sep 2022 13:18:09 +0300 Subject: [PATCH 2/2] Update Connection.php Add open to create client --- Connection.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Connection.php b/Connection.php index ee16a5ec8a..5dbf36fd09 100644 --- a/Connection.php +++ b/Connection.php @@ -157,6 +157,7 @@ public function getIsActive() public function getClient(): Client { + $this->open(); return $this->_client; }