]> git.mxchange.org Git - friendica.git/commitdiff
Reverting stuff
authorMichael <heluecht@pirati.ca>
Fri, 15 May 2020 20:24:38 +0000 (20:24 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 15 May 2020 20:24:38 +0000 (20:24 +0000)
mod/item.php
tests/src/Database/DBStructureTest.php

index 9994b1b31d39947fc35984df49b7fdf81b49f446..30d9f03e6bf40101a63651c7d73e27d5d374d0de 100644 (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.'));
        }
 
index be5ca112a30e7238fbac4ba338c2280b59f10153..2a254eb892b3b84a93ec9da4235106c07f66e806 100644 (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));
        }
 }