Skip to content

feat: tokens #4380

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Oct 6, 2022
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';