I'm trying to see if this speeds up builds a bit. May not without a module boundary, but for now it's nice organization to have as the program grows.
7 lines
333 B
SQL
7 lines
333 B
SQL
-- +goose Up
|
|
ALTER TABLE oauth_token RENAME COLUMN expires TO access_token_expires;
|
|
ALTER TABLE oauth_token ADD COLUMN refresh_token_expires TIMESTAMP NOT NULL DEFAULT current_timestamp;
|
|
|
|
-- +goose Down
|
|
ALTER TABLE oauth_token DROP COLUMN refresh_token_expires;
|
|
ALTER TABLE oauth_token RENAME COLUMN access_token_expires TO expires;
|