dialect/sql/schema: fix error message for the missing fk constraints (#1861)

This commit is contained in:
dakimura
2021-08-23 04:05:40 +09:00
committed by GitHub
parent 368a8f7a2e
commit dac5ccaec9

View File

@@ -29,7 +29,7 @@ func (d *SQLite) init(ctx context.Context, tx dialect.Tx) error {
if !on {
// foreign_keys pragma is off, either enable it by execute "PRAGMA foreign_keys=ON"
// or add the following parameter in the connection string "_fk=1".
return fmt.Errorf("sqlite: foreign_keys pragma is off: missing %q is the connection string", "_fk=1")
return fmt.Errorf("sqlite: foreign_keys pragma is off: missing %q in the connection string", "_fk=1")
}
return nil
}