Skip to content
This repository was archived by the owner on Aug 14, 2023. It is now read-only.
This repository was archived by the owner on Aug 14, 2023. It is now read-only.

TypeError 'NoneType' when using pgadmin-schema-diff #3

@mgm1313

Description

@mgm1313

Bug report

Describe the bug

When using the supabase/pgadmin-schema-diff as described on the supabase blog, i get an error TypeError: 'NoneType' object is not iterable.

To Reproduce

 ~ docker run supabase/pgadmin-schema-diff \
  'postgres://postgres:[password]@[url].supabase.co:5432/postgres' \
  'postgres://postgres:[password]@[url].supabase.co:5432/postgres' \
  > ~/Downloads/schema-diff.sql
Starting schema diff...
Comparision started......0%
Traceback (most recent call last):
  File "cli.py", line 272, in <module>
    diff_result = message + 'BEGIN;\n\n' + '\n'.join(x.get('diff_ddl') for x in response_data['data'] if x.get('status') != 'Identical' and in_db_objects(x.get('type'), args)) + '\n\nEND;'
TypeError: 'NoneType' object is not iterable

Additional context

I can provide a schema-only dump of the source database in a more private setting, the target database is a freshly set-up Supabase project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions