Reverting stuff

This commit is contained in:
Michael 2020-05-15 20:24:38 +00:00
parent 0fa6921845
commit dfb75e16e1
2 changed files with 4 additions and 3 deletions

View file

@ -720,6 +720,7 @@ function item_post(App $a) {
if ($return_path) {
DI::baseUrl()->redirect($return_path);
}
throw new HTTPException\InternalServerErrorException(DI::l10n()->t('Item wasn\'t stored.'));
}

View file

@ -75,10 +75,10 @@ class DBStructureTest extends DatabaseTest
* @small
*/
public function testChangePrimaryKey() {
$oldID = 'id';
$oldID = 'client_id';
$newID = 'pw';
$this->assertTrue(DBStructure::rename('workerqueue', [ $newID ], DBStructure::RENAME_PRIMARY_KEY));
$this->assertTrue(DBStructure::rename('workerqueue', [ $oldID ], DBStructure::RENAME_PRIMARY_KEY));
$this->assertTrue(DBStructure::rename('clients', [ $newID ], DBStructure::RENAME_PRIMARY_KEY));
$this->assertTrue(DBStructure::rename('clients', [ $oldID ], DBStructure::RENAME_PRIMARY_KEY));
}
}