-- +goose Up -- 历史分销账号仍属于大锤租户,但渠道归属独立;同一手机号可以再注册大锤经营账号。 ALTER TABLE users DROP KEY uk_users_tenant_phone, ADD UNIQUE KEY uk_users_tenant_site_phone (tenant_id, distribution_site_id, phone); -- +goose Down ALTER TABLE users DROP KEY uk_users_tenant_site_phone, ADD UNIQUE KEY uk_users_tenant_phone (tenant_id, phone);