migrate icon indicating copy to clipboard operation
migrate copied to clipboard

error: no scheme for sqlite3

Open Vikash082 opened this issue 7 years ago • 1 comments

Was trying tool for sqlite3 migration.

$cat ./migration/1_init_schema.up.sql CREATE TABLE pets ( name string );

command: $./migrate.linux-amd64 -database "sqlite3" -path ./migration/ up 1 error: no scheme

Is this bcoz I didn't passed DB? How the DB file is supposed to get created ? From command line we use $sqlite3 test.db

What need to be done ?

Vikash082 avatar Feb 02 '18 17:02 Vikash082

Hey @Vikash082 you need to compile migrate with the sqlite3 build tag.

I also believe your syntax needs to be -database "sqlite3://mydb.db"

Please have a read here for a postgres example.

nii236 avatar May 06 '18 00:05 nii236