mirror of
https://github.com/friendica/friendica
synced 2024-12-23 12:00:16 +00:00
Use a table that hasn't got a foreign key
This commit is contained in:
parent
ec3290da3b
commit
6272b8d4e0
1 changed files with 3 additions and 3 deletions
|
@ -75,10 +75,10 @@ class DBStructureTest extends DatabaseTest
|
||||||
* @small
|
* @small
|
||||||
*/
|
*/
|
||||||
public function testChangePrimaryKey() {
|
public function testChangePrimaryKey() {
|
||||||
$oldID = 'client_id';
|
$oldID = 'id';
|
||||||
$newID = 'pw';
|
$newID = 'pw';
|
||||||
|
|
||||||
$this->assertTrue(DBStructure::rename('clients', [ $newID ], DBStructure::RENAME_PRIMARY_KEY));
|
$this->assertTrue(DBStructure::rename('workerqueue', [ $newID ], DBStructure::RENAME_PRIMARY_KEY));
|
||||||
$this->assertTrue(DBStructure::rename('clients', [ $oldID ], DBStructure::RENAME_PRIMARY_KEY));
|
$this->assertTrue(DBStructure::rename('workerqueue', [ $oldID ], DBStructure::RENAME_PRIMARY_KEY));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue