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

1ed9fb9399b21da8e6cf45be8389792aac82d5bc
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;