Nest migration code

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
Lukas Reschke 2021-06-02 15:29:06 +02:00
parent 37543c0530
commit e09c99cefa
1 changed files with 8 additions and 8 deletions

View File

@ -20,14 +20,14 @@ class Version22000Date20210525173326 extends SimpleMigrationStep {
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();
if (!$schema->hasTable('previously_used_userids')) {
$table = $schema->createTable('previously_used_userids');
$table->addColumn('user_id_hash', \OCP\DB\Types::STRING, [
'notnull' => true,
'length' => 128,
]);
$table->setPrimaryKey(['user_id_hash'], 'uid_hash_idx');
}
return $schema;
}