16 lines
429 B
MySQL
16 lines
429 B
MySQL
|
-- +goose Up
|
||
|
-- +goose StatementBegin
|
||
|
SELECT 'up SQL query';
|
||
|
CREATE TABLE USERS (
|
||
|
ID INTEGER PRIMARY KEY AUTOINCREMENT,
|
||
|
Name TEXT NOT NULL,
|
||
|
Hash TEXT NOT NULL,
|
||
|
CreatedAt DATETIME NOT NULL,
|
||
|
LastUpdated DATETIME NOT NULL
|
||
|
)
|
||
|
-- +goose StatementEnd
|
||
|
-- +goose Down
|
||
|
-- +goose StatementBegin
|
||
|
SELECT 'down SQL query';
|
||
|
DROP TABLE IF EXISTS USERS;
|
||
|
-- +goose StatementEnd
|