From 6272b8d4e0684df1060c95043819bf25cf13b884 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 15 May 2020 18:58:54 +0000 Subject: [PATCH] Use a table that hasn't got a foreign key --- tests/src/Database/DBStructureTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/src/Database/DBStructureTest.php b/tests/src/Database/DBStructureTest.php index 2a254eb892..be5ca112a3 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 = 'client_id'; + $oldID = 'id'; $newID = 'pw'; - $this->assertTrue(DBStructure::rename('clients', [ $newID ], DBStructure::RENAME_PRIMARY_KEY)); - $this->assertTrue(DBStructure::rename('clients', [ $oldID ], DBStructure::RENAME_PRIMARY_KEY)); + $this->assertTrue(DBStructure::rename('workerqueue', [ $newID ], DBStructure::RENAME_PRIMARY_KEY)); + $this->assertTrue(DBStructure::rename('workerqueue', [ $oldID ], DBStructure::RENAME_PRIMARY_KEY)); } } -- 2.39.5