updown/migrations/20190226231901_pastes_init.sql

14 lines
279 B
MySQL
Raw Normal View History

2019-02-27 04:48:23 +00:00
-- +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;