From 7597f74d96c3225efcbe66d4da6a12343e509960 Mon Sep 17 00:00:00 2001 From: James Nuttall Date: Thu, 23 Sep 2021 17:10:34 +0100 Subject: [PATCH] Don't try to create table if it already exists --- src/migrations/Install.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/migrations/Install.php b/src/migrations/Install.php index 0a15991..1f91145 100644 --- a/src/migrations/Install.php +++ b/src/migrations/Install.php @@ -79,6 +79,7 @@ public function safeDown() */ protected function createTables() { + if (!$this->db->tableExists('{{%social_login_accounts}}')) { $this->createTable( '{{%social_login_accounts}}', [ @@ -93,6 +94,7 @@ protected function createTables() 'PRIMARY KEY(id)', ] ); + } } /**