SET NAMES utf8mb4;

ALTER TABLE oauth_providers
    ADD COLUMN network_id BIGINT UNSIGNED NULL AFTER name,
    ADD CONSTRAINT fk_oauth_providers_network FOREIGN KEY (network_id) REFERENCES networks(id);

CREATE INDEX idx_oauth_providers_network ON oauth_providers (network_id);
