ALTER TABLE users ADD COLUMN is_admin INTEGER NOT NULL DEFAULT 0; -- The first account to register administers the others. UPDATE users SET is_admin = 1 WHERE id = (SELECT MIN(id) FROM users);