From 3b3efb4c84e1eff5b89a9f2536c9920f1ee04494 Mon Sep 17 00:00:00 2001 From: themohooks <81331307+themohooks@users.noreply.github.com> Date: Tue, 11 Feb 2025 21:17:35 +0300 Subject: [PATCH] fix show page --- sqlcore/sql_0002.sql | 7 ++----- views/pages/Profile/UploadPhoto.php | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/sqlcore/sql_0002.sql b/sqlcore/sql_0002.sql index 3754db9..907e543 100644 --- a/sqlcore/sql_0002.sql +++ b/sqlcore/sql_0002.sql @@ -1,8 +1,5 @@ -- Migration script to update database schema --- Drop tables that are no longer needed --- (No tables to drop as all tables in 111.sql exist in 222.sql) - -- Add new tables from 222.sql that don't exist in 111.sql CREATE TABLE IF NOT EXISTS `contests` ( `id` int(10) NOT NULL AUTO_INCREMENT, @@ -29,8 +26,8 @@ CREATE TABLE IF NOT EXISTS `servicekeys` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Modify existing tables to add new columns -ALTER TABLE `photos` - ADD COLUMN IF NOT EXISTS `pinnedcomment_id` int(10) NOT NULL DEFAULT 0 AFTER `entitydata_id`; +-- Using proper ALTER TABLE syntax for MySQL +ALTER TABLE `photos` ADD COLUMN `pinnedcomment_id` int(10) NOT NULL DEFAULT 0 AFTER `entitydata_id`; -- Set AUTO_INCREMENT values for the new tables ALTER TABLE `contests` AUTO_INCREMENT = 1; diff --git a/views/pages/Profile/UploadPhoto.php b/views/pages/Profile/UploadPhoto.php index d0beeb0..ff02144 100644 --- a/views/pages/Profile/UploadPhoto.php +++ b/views/pages/Profile/UploadPhoto.php @@ -43,7 +43,7 @@ $user = new User(Auth::userid()); var pub_pid = 0; - i('status') === 3) { + i('status') === 3) { die('Чтобы публиковать Фотографии и Видео, нужно подтвердить почту.'); } ?>

Предложить медиа на публикацию