Skip to content
Prev Previous commit
Next Next commit
rename to tokens
  • Loading branch information
f0ssel committed Oct 6, 2022
commit f4dbe39e70be0cd07c14bb77dcada39c06c88056
2 changes: 2 additions & 0 deletions coderd/database/migrations/000057_api_key_token.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- You cannot safely remove values from enums https://www.postgresql.org/docs/current/datatype-enum.html
-- You cannot create a new type and do a rename because objects depend on this type now.
1 change: 1 addition & 0 deletions coderd/database/migrations/000057_api_key_token.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TYPE login_type ADD VALUE IF NOT EXISTS 'token';