updown/migrations/20190226231901_pastes_init.sql

14 lines
279 B
SQL

-- +goose Up
-- SQL in this section is executed when the migration is applied.
CREATE TABLE paste (
pasteId SERIAL PRIMARY KEY,
title VARCHAR(512),
handle uuid UNIQUE
);
-- +goose Down
-- SQL in this section is executed when the migration is rolled back.
DROP TABLE paste;