Skip to content

Commit

Permalink
consistent exception message when table slony id is a duplicate so bu…
Browse files Browse the repository at this point in the history
…ild and build + upgrade tests all pass
  • Loading branch information
nkiraly committed Jul 16, 2015
1 parent 0831b3a commit 96deaff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/DBSteward/sql_format/pgsql8/pgsql8.php
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,7 @@ public static function build_upgrade_slonik_replica_set($old_db_doc, $new_db_doc
throw new exception('table ' . $new_table['name'] . " slonyId " . $new_table['slonyId'] . " is not numeric");
}
if (in_array(dbsteward::string_cast($new_table['slonyId']), self::$table_slony_ids)) {
throw new exception("new table " . $new_table['name'] . " slonyId " . $new_table['slonyId'] . " already in table_slony_ids -- duplicates not allowed");
throw new exception("table " . $new_table['name'] . " slonyId " . $new_table['slonyId'] . " already in table_slony_ids -- duplicates not allowed");
}
self::$table_slony_ids[] = dbsteward::string_cast($new_table['slonyId']);

Expand Down

0 comments on commit 96deaff

Please sign in to comment.