veylant/migrations/000012_users_add_name.up.sql
2026-03-06 18:38:04 +01:00

7 lines
345 B
SQL

-- Migration 000012: Add name column to users table.
-- Migration 000001 created users without a name column; migration 000006 used
-- CREATE TABLE IF NOT EXISTS which was a no-op since the table already existed.
-- This migration adds the missing column retroactively.
ALTER TABLE users ADD COLUMN IF NOT EXISTS name TEXT NOT NULL DEFAULT '';