c1f8effe1a
go-oidc increased the size of the generated keys, which were too large to be used as primary keys in postgres.
5 lines
182 B
SQL
5 lines
182 B
SQL
-- +migrate Up
|
|
ALTER TABLE key ADD COLUMN tmp_value bytea;
|
|
UPDATE KEY SET tmp_value = value;
|
|
ALTER TABLE key DROP COLUMN value;
|
|
ALTER TABLE key RENAME COLUMN "tmp_value" to "value";
|