Skip to content
Snippets Groups Projects
Commit 9b5bdc2d authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

More useful output still.

parent 59bcebe8
No related branches found
No related tags found
No related merge requests found
......@@ -278,9 +278,14 @@ foreach my $dbh (@db_handles) {
$pk, $master_pk, Dumper($master_row) );
push( @{ $sql{$dbname} },
sprintf( "-- Entries with %s_id=%d "
. "should change to %d\n",
$table, $pk, $master_pk ) );
sprintf(
"-- Entries with %s_id = %d "
. "should change this to %d\n"
. "-- Useful SQL:\n"
. "-- UPDATE <table> "
. "SET %s_id = %d WHERE %s_id = %s;\n",
$table, $pk, $master_pk, $table,
$master_pk, $table, $pk ) );
$is_missing = 0;
}
......@@ -365,9 +370,14 @@ foreach my $dbh (@db_handles) {
$pk, $master_pk, Dumper($master_row) );
push( @{ $sql{$dbname} },
sprintf( "-- Entries with %s_id=%d "
. "should change to %d\n",
$table, $pk, $master_pk ) );
sprintf(
"-- Entries with %s_id = %d "
. "should change this to %d\n"
. "-- Useful SQL:\n"
. "-- UPDATE <table> "
. "SET %s_id = %d WHERE %s_id = %s;\n",
$table, $pk, $master_pk, $table,
$master_pk, $table, $pk ) );
$is_missing = 0;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment