Fix code
parent
1a9df263ed
commit
68d3dc1fcc
|
@ -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 New Issue