Use a table that hasn't got a foreign key

2022.09-rc
Michael 2020-05-15 18:58:54 +00:00
rodzic ec3290da3b
commit 6272b8d4e0
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -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));
}
}