mirror of
https://github.com/usememos/memos.git
synced 2026-11-19 10:29:11 +01:00
92d937b1aa
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
9 lines
300 B
SQL
9 lines
300 B
SQL
-- Add uid column to idp table
|
|
ALTER TABLE idp ADD COLUMN uid TEXT NOT NULL DEFAULT '';
|
|
|
|
-- Populate uid for existing rows using hex of id as a fallback
|
|
UPDATE idp SET uid = printf('%08x', id) WHERE uid = '';
|
|
|
|
-- Create unique index on uid
|
|
CREATE UNIQUE INDEX IF NOT EXISTS idx_idp_uid ON idp (uid);
|