4 lines
151 B
SQL
4 lines
151 B
SQL
ALTER TABLE users ADD COLUMN handle TEXT NOT NULL DEFAULT '';
|
|
|
|
CREATE UNIQUE INDEX IF NOT EXISTS idx_users_handle ON users(handle) WHERE handle <> '';
|