From c0a66037e0e4d4691ea0ee3be10dfdb99c2084a1 Mon Sep 17 00:00:00 2001 From: slawkens Date: Fri, 22 Nov 2024 16:04:48 +0100 Subject: [PATCH] Fix column not found - hidden/hide --- system/migrations/27.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/migrations/27.php b/system/migrations/27.php index 81d4fb81..95c0cd2a 100644 --- a/system/migrations/27.php +++ b/system/migrations/27.php @@ -16,7 +16,7 @@ $up = function () use ($db) { 'player_id' => 1, 'php' => 0, 'access' => 0, - 'hidden' => 0, + ($db->hasColumn(TABLE_PREFIX . 'pages', 'hide') ? 'hide' : 'hidden') => 0, ]); } @@ -30,7 +30,7 @@ $up = function () use ($db) { 'player_id' => 1, 'php' => 0, 'access' => 0, - 'hidden' => 0, + ($db->hasColumn(TABLE_PREFIX . 'pages', 'hide') ? 'hide' : 'hidden') => 0, ]); } };