47a183aa65
- Added WEKNORA_BOOTSTRAP_SYSTEM_ADMIN_EMAIL environment variable to promote a specified user to system admin on startup. - Introduced a new bootstrap process in `bootstrap.go` to handle the promotion logic. - Updated `.env.example` to document the new environment variable and its behavior. - Created new views for managing system administrators and system settings, including listing, promoting, and revoking admin privileges. - Enhanced the frontend to reflect the new system admin features, including UI elements for admin management and settings configuration. - Updated API interfaces to support system admin functionalities, ensuring proper data handling and user management.
10 lines
330 B
SQL
10 lines
330 B
SQL
-- Rollback: drop users.is_system_admin column and its index
|
|
|
|
DO $$ BEGIN RAISE NOTICE '[Migration 000052 DOWN] Dropping users.is_system_admin...'; END $$;
|
|
|
|
DROP INDEX IF EXISTS idx_users_is_system_admin;
|
|
|
|
ALTER TABLE users DROP COLUMN IF EXISTS is_system_admin;
|
|
|
|
DO $$ BEGIN RAISE NOTICE '[Migration 000052 DOWN] Done.'; END $$;
|