migrate-sqlite-to-pg: pdo_pgsql-Schema (pgsql:// statt postgresql://)
This commit is contained in:
@@ -13,7 +13,7 @@ if (!$pgUrl) {
|
||||
$sqlite = new PDO('sqlite:' . $sqlitePath);
|
||||
$sqlite->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
|
||||
$pg = new PDO($pgUrl);
|
||||
$pg = new PDO(preg_replace('#^postgresql://#', 'pgsql://', $pgUrl));
|
||||
$pg->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
|
||||
$copy = $pg->beginTransaction();
|
||||
|
||||
Reference in New Issue
Block a user