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.
10 lines
315 B
SQL
10 lines
315 B
SQL
-- +goose Up
|
|
CREATE TYPE HashType AS ENUM (
|
|
'bcrypt-14');
|
|
|
|
ALTER TABLE user_ ADD COLUMN password_hash_type HashType NOT NULL;
|
|
ALTER TABLE user_ ADD COLUMN password_hash TEXT NOT NULL;
|
|
-- +goose Down
|
|
ALTER TABLE user_ DROP COLUMN password_hash;
|
|
ALTER TABLE user_ DROP COLUMN password_hash_type;
|
|
DROP TYPE HashType;
|