}
}
+ /**
+ * Create a unique name for the temporary table
+ *
+ * @param string $name
+ * @return string
+ */
+ protected function generateTemporaryTableName($name) {
+ return 'oc_' . $name . '_' . uniqid();
+ }
+
/**
* Check the migration of a table on a copy so we can detect errors before messing with the real table
*
*/
protected function checkTableMigrate(Table $table) {
$name = $table->getName();
- $tmpName = 'oc_' . uniqid();
+ $tmpName = $this->generateTemporaryTableName($name);
$this->copyTable($name, $tmpName);