mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-07 21:48:18 -08:00
3 lines
No EOL
191 B
SQL
3 lines
No EOL
191 B
SQL
-- +goose Up
|
|
ALTER TABLE api_keys DROP CONSTRAINT api_keys_user_id_fkey;
|
|
ALTER TABLE api_keys ADD CONSTRAINT api_keys_user_id_fkey FOREIGN KEY(user_id) REFERENCES users(id) ON DELETE CASCADE; |