internal/store/migrations/0060_credential_origin.up.sql

32a5f76e5b270097b63a5bba9a43557cf50ad63d
gitbay/internal/store/migrations/0060_credential_origin.up.sql history · blame · raw

4 lines · 316 bytes

1-- The API token a credential was created through. NULL when it was not,
2-- and once that token is revoked.
3ALTER TABLE api_tokens ADD COLUMN created_by_token INTEGER REFERENCES api_tokens(id) ON DELETE SET NULL;
4ALTER TABLE ssh_keys ADD COLUMN created_by_token INTEGER REFERENCES api_tokens(id) ON DELETE SET NULL;