Merge pull request #287 from nextcloud/fix/unique_hash

Unique Form-Hash
This commit is contained in:
John Molakvoæ 2020-04-14 11:43:10 +02:00 committed by GitHub
commit 597a34ea25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,6 +105,7 @@ class Version010200Date2020323141300 extends SimpleMigrationStep {
'default' => 0,
]);
$table->setPrimaryKey(['id']);
$table->addUniqueIndex(['hash'], 'uniqueHash');
}
if (!$schema->hasTable('forms_v2_questions')) {