summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Migration
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-07-12 12:11:11 +0200
committerJoas Schilling <coding@schilljs.com>2018-07-12 12:11:11 +0200
commitdaed1bed57811b677073f4678ef35ea86c8e7a1d (patch)
tree856b682c57b797c7d9a35571aba39b73dd5b0d90 /apps/dav/lib/Migration
parentb7de6d7a24f76c91dffe1644c4b24e0a27b43c14 (diff)
downloadnextcloud-server-daed1bed57811b677073f4678ef35ea86c8e7a1d.tar.gz
nextcloud-server-daed1bed57811b677073f4678ef35ea86c8e7a1d.zip
Also shorten the name of the invitation tokens
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav/lib/Migration')
-rw-r--r--apps/dav/lib/Migration/Version1006Date20180619154313.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/dav/lib/Migration/Version1006Date20180619154313.php b/apps/dav/lib/Migration/Version1006Date20180619154313.php
index 8fb82ffed67..91d4826c277 100644
--- a/apps/dav/lib/Migration/Version1006Date20180619154313.php
+++ b/apps/dav/lib/Migration/Version1006Date20180619154313.php
@@ -22,8 +22,8 @@ class Version1006Date20180619154313 extends SimpleMigrationStep {
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();
- if (!$schema->hasTable('calendar_invitation_tokens')) {
- $table = $schema->createTable('calendar_invitation_tokens');
+ if (!$schema->hasTable('calendar_invitations')) {
+ $table = $schema->createTable('calendar_invitations');
$table->addColumn('id', Type::BIGINT, [
'autoincrement' => true,
@@ -62,8 +62,8 @@ class Version1006Date20180619154313 extends SimpleMigrationStep {
'unsigned' => true,
]);
- $table->setPrimaryKey(['id'], 'calendar_invitation_tokens_id_idx');
- $table->addIndex(['token'], 'calendar_invitation_tokens_token_idx');
+ $table->setPrimaryKey(['id']);
+ $table->addIndex(['token'], 'calendar_invitation_tokens');
return $schema;
}