Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supabase diff omit semicolon from migration statement? #2213

Open
higheruceo opened this issue Apr 28, 2024 · 1 comment
Open

Supabase diff omit semicolon from migration statement? #2213

higheruceo opened this issue Apr 28, 2024 · 1 comment

Comments

@higheruceo
Copy link

Describe the bug
supabase diff when specifying --db-url does not include semicolon

To Reproduce
supabase db diff --db-url postgres://url -f migration_name

Expected behavior
semicolon should be included at the end of each statement so that a supabase start or db reset would complete without error.

System information
Rerun the failing command with --create-ticket flag.

  • Ticket ID: 469084417d594511b4593c1a8156f238
  • Version of OS: MacOs
  • Version of CLI: 1.163.6
@sweatybridge
Copy link
Contributor

Sorry I can't seem to reproduce

$ supabase db diff --db-url 'postgres://postgres:postgres@localhost:54322/postgres' -f what
onnecting to remote database...
Creating shadow database...

$ cat supabase/migrations/20240429062258_what.sql
create extension if not exists "hypopg" with schema "extensions";

create extension if not exists "index_advisor" with schema "extensions";

Could you report versions from the supabase services as well as the problematic schema and actual output?

@sweatybridge sweatybridge changed the title Supabase diff Supabase diff omit semicolon from migration statement? Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants