mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-08 09:14:32 +02:00
Fix code
This commit is contained in:
parent
1a9df263ed
commit
68d3dc1fcc
2 changed files with 5 additions and 4 deletions
|
@ -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('poll', [ $newID ], DBStructure::RENAME_PRIMARY_KEY));
|
||||
$this->assertTrue(DBStructure::rename('poll', [ $oldID ], DBStructure::RENAME_PRIMARY_KEY));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue