-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added misc/tools/dbcopy.php as external dependency
- Loading branch information
Showing
6 changed files
with
113 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"source": { | ||
"driver": "pdo_mysql", | ||
"host": "localhost", | ||
"user": "travis", | ||
"password": "", | ||
"dbname": "volkszaehler" | ||
}, | ||
"target": { | ||
"driver": "pdo_mysql", | ||
"host": "localhost", | ||
"user": "travis", | ||
"password": "", | ||
"dbname": "volkszaehler_backup", | ||
"path": "sqlite.db3" // path is only used if driver = pdo_sqlite | ||
}, | ||
"tables": [ | ||
// TABLE DEFINITION | ||
// ---------------- | ||
// table name | ||
// tables will be processed in the order they are mentioned: | ||
// - foreign keys on target will be dropped | ||
// - if a table is not listed here, it will not be touched | ||
// transfer mode | ||
// skip: table will not be copied | ||
// copy: entire table will be truncated on target and copied from source | ||
// pk: selective copy by primary key. only data not present on target | ||
// will be copied from source. | ||
{ | ||
"name": "entities", | ||
"mode": "copy" | ||
}, { | ||
"name": "properties", | ||
"mode": "copy" | ||
}, { | ||
"name": "entities_in_aggregator", | ||
"mode": "copy" | ||
}, { | ||
"name": "data", | ||
"mode": "pk" | ||
}, { | ||
"name": "aggregate", | ||
"mode": "skip" | ||
} | ||
] | ||
} |