RuntimeError: Unrecognized or unsupported schema: "".
sanfx opened this issue · comments
I have peewee version 3.7.1 installed and latest peewee-migrate
when I try to create a migration
pw_migrate create -v --database deploy_services --directory migrations/ --auto-source /path/to/model/new_table.py migration_name
/lib/python2.7/site-packages/playhouse/db_url.py line 97 in connect parsed.scheme)
RuntimeError: Unrecognized or unsupported schema: "".
I get the below error
I get the same error.
I managed to get it working by setting sqlite:///path/to/my/sqlite/database/file.sqlite
for the --database
argument, but it simply generated a sample migration file 🤔
This should be an empty migration file, where you write your migration code. pw_migrate create --database="sqlite://app.db" --directory=migrations 'migration_name'