18 lines
302 B
PL/PgSQL
18 lines
302 B
PL/PgSQL
-- Migration: [description]
|
|
-- Created: [date]
|
|
|
|
-- TODO: Customize for your migration framework
|
|
|
|
BEGIN;
|
|
|
|
-- Up migration
|
|
-- TODO: Add schema changes
|
|
-- CREATE TABLE IF NOT EXISTS ...
|
|
-- ALTER TABLE ...
|
|
|
|
-- Down migration (rollback)
|
|
-- TODO: Add rollback statements
|
|
-- DROP TABLE IF EXISTS ...
|
|
|
|
COMMIT;
|