From: Michael Date: Fri, 15 May 2020 20:24:38 +0000 (+0000) Subject: Reverting stuff X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dfb75e16e18409cdd5012c9b975bc2d9cf29445c;p=friendica.git Reverting stuff --- diff --git a/mod/item.php b/mod/item.php index 9994b1b31d..30d9f03e6b 100644 --- a/mod/item.php +++ b/mod/item.php @@ -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.')); } diff --git a/tests/src/Database/DBStructureTest.php b/tests/src/Database/DBStructureTest.php index be5ca112a3..2a254eb892 100644 --- a/tests/src/Database/DBStructureTest.php +++ b/tests/src/Database/DBStructureTest.php @@ -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)); } }