mirror of
https://github.com/friendica/friendica
synced 2024-11-18 01:03:40 +00:00
Fix code
This commit is contained in:
parent
1a9df263ed
commit
68d3dc1fcc
2 changed files with 5 additions and 4 deletions
|
@ -48,7 +48,8 @@ return [
|
|||
// 'backend-class' => 'invalid!',
|
||||
// 'backend-ref' => 'unimported',
|
||||
// 'data' => '',
|
||||
// ], ],
|
||||
// ],
|
||||
],
|
||||
'storage' => [
|
||||
[
|
||||
'id' => 1,
|
||||
|
|
|
@ -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…
Reference in a new issue