From 537202e59f49e950c13abbb9ffd2093a10d2bac0 Mon Sep 17 00:00:00 2001 From: Murtaza Sultani Date: Thu, 2 Oct 2025 13:21:35 +0200 Subject: Add post log and extract post log from admin tag --- db/migrations/6.2.2_add_forum_posting_logs_table.php | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/db/migrations/6.2.2_add_forum_posting_logs_table.php b/db/migrations/6.2.2_add_forum_posting_logs_table.php index 055e72e..bc38d98 100644 --- a/db/migrations/6.2.2_add_forum_posting_logs_table.php +++ b/db/migrations/6.2.2_add_forum_posting_logs_table.php @@ -4,24 +4,15 @@ final class AddForumPostingLogsTable extends Migration { public function up() { - \DBManager::get()->exec(" + DBManager::get()->exec(" ALTER TABLE `forum_postings` ADD COLUMN `editor_id` CHAR(32) COLLATE latin1_bin NOT NULL AFTER `user_id` "); - - \DBManager::get()->exec(" - UPDATE forum_postings - SET content = REGEXP_REPLACE( - content, - '', - '' - ) - "); } public function down() { - \DBManager::get()->exec(" + DBManager::get()->exec(" ALTER TABLE `forum_postings` DROP COLUMN `editor_id` "); } -- cgit v1.0