Let me check the script and fix any issues:
The issue might be that the SQL has multiple statements that need to be split, or there could be syntax issues with the execution environment. Let me split the scripts into smaller, individual statements:
Let me search for the Supabase SQL tool to run queries directly:
I should use the Supabase MCP tools directly. Let me load the supabase_apply_migration tool:
Now let me apply the migration using the Supabase MCP tool directly: