4.7.1: Фикс открытия админ-панели
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m11s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m11s
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
-- Migration: Remove is_admin field from users table
|
||||
-- Date: 2026-02-02
|
||||
--
|
||||
-- This migration reverts the addition of is_admin field.
|
||||
|
||||
DROP INDEX IF EXISTS idx_users_is_admin;
|
||||
|
||||
ALTER TABLE users
|
||||
DROP COLUMN IF EXISTS is_admin;
|
||||
@@ -0,0 +1,12 @@
|
||||
-- Migration: Add is_admin field to users table
|
||||
-- Date: 2026-02-02
|
||||
--
|
||||
-- This migration adds is_admin boolean field to users table to identify admin users.
|
||||
-- Default value is FALSE, so existing users will not become admins automatically.
|
||||
|
||||
ALTER TABLE users
|
||||
ADD COLUMN is_admin BOOLEAN NOT NULL DEFAULT FALSE;
|
||||
|
||||
CREATE INDEX idx_users_is_admin ON users(is_admin);
|
||||
|
||||
COMMENT ON COLUMN users.is_admin IS 'Indicates if the user has admin privileges';
|
||||
Reference in New Issue
Block a user