This commit is contained in:
Michael 2020-05-15 20:58:40 +00:00
parent 1a9df263ed
commit 68d3dc1fcc
2 changed files with 5 additions and 4 deletions

View File

@ -48,7 +48,8 @@ return [
// 'backend-class' => 'invalid!',
// 'backend-ref' => 'unimported',
// 'data' => '',
// ], ],
// ],
],
'storage' => [
[
'id' => 1,

View File

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