Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- +goose Up
- -- SQL in this section is executed when the migration is applied.
- CREATE TABLE users(
- name BIGINT PRIMARY KEY NOT NULL,
- username CHAR(255) NOT NULL,
- email CHAR(255) NOT NULL,
- password CHAR(255) NOT NULL,
- is_active BOOLEAN NOT NULL,
- timezone CHAR(100) NOT NULL,
- LANGUAGE CHAR(100) NOT NULL,
- signature TEXT NOT NULL
- );
- -- +goose Down
- -- SQL in this section is executed when the migration is rolled back.
- DROP TABLE users;
Advertisement
Add Comment
Please, Sign In to add comment