golib/cmd/sql-migrate/examples/my-todos/sql/migrations/2026-04-05-002000_add-todo-fields.up.sql

8 lines
287 B
SQL

-- add-todo-fields (up)
ALTER TABLE todos ADD COLUMN completed_at TIMESTAMP NULL DEFAULT NULL;
ALTER TABLE todos ADD COLUMN priority INTEGER NOT NULL DEFAULT 0;
-- leave this as the last line
INSERT INTO _migrations (name, id) VALUES ('2026-04-05-002000_add-todo-fields', 'd4e5f6a7');