Skip to content
This repository has been archived by the owner on Jun 28, 2018. It is now read-only.

error: no scheme for sqlite3 #332

Open
Vikash082 opened this issue Feb 2, 2018 · 1 comment
Open

error: no scheme for sqlite3 #332

Vikash082 opened this issue Feb 2, 2018 · 1 comment

Comments

@Vikash082
Copy link

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 ?

@nii236
Copy link

nii236 commented May 6, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants