mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-21 13:26:41 +02:00
fix(inventar): import FeedbackPage from @manacore/feedback, not shared-ui
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
b737240ec1
commit
0d6005dbcc
23 changed files with 213 additions and 42 deletions
22
services/mana-auth/sql/001_add_access_tier.sql
Normal file
22
services/mana-auth/sql/001_add_access_tier.sql
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
-- Migration: Add access_tier to users table
|
||||
-- Run this on production before deploying the new mana-auth version.
|
||||
-- After this migration, run `drizzle-kit push` or redeploy mana-auth.
|
||||
--
|
||||
-- Alternatively, just run `pnpm db:push` from services/mana-auth/ which
|
||||
-- will apply the schema change automatically via Drizzle Kit.
|
||||
|
||||
-- Step 1: Create the enum type (if not exists)
|
||||
DO $$
|
||||
BEGIN
|
||||
IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'access_tier') THEN
|
||||
CREATE TYPE public.access_tier AS ENUM ('guest', 'public', 'beta', 'alpha', 'founder');
|
||||
END IF;
|
||||
END
|
||||
$$;
|
||||
|
||||
-- Step 2: Add the column with default 'public'
|
||||
ALTER TABLE auth.users
|
||||
ADD COLUMN IF NOT EXISTS access_tier public.access_tier NOT NULL DEFAULT 'public';
|
||||
|
||||
-- Step 3: Set yourself (founder) — replace with your actual email
|
||||
-- UPDATE auth.users SET access_tier = 'founder' WHERE email = 'your@email.com';
|
||||
Loading…
Add table
Add a link
Reference in a new issue