peewee_migrate icon indicating copy to clipboard operation
peewee_migrate copied to clipboard

RuntimeError: Unrecognized or unsupported schema: "".

Open sanfx opened this issue 7 years ago • 3 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

sanfx avatar Oct 24 '18 02:10 sanfx

I get the same error.

revolter avatar Nov 07 '18 10:11 revolter

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 🤔

revolter avatar Nov 07 '18 19:11 revolter

This should be an empty migration file, where you write your migration code. pw_migrate create --database="sqlite://app.db" --directory=migrations 'migration_name'

Tardigrada777 avatar Apr 21 '19 09:04 Tardigrada777