diff options
author | Joas Schilling <coding@schilljs.com> | 2018-07-12 12:11:11 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-07-12 12:11:11 +0200 |
commit | daed1bed57811b677073f4678ef35ea86c8e7a1d (patch) | |
tree | 856b682c57b797c7d9a35571aba39b73dd5b0d90 /apps/dav/lib/Migration | |
parent | b7de6d7a24f76c91dffe1644c4b24e0a27b43c14 (diff) | |
download | nextcloud-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.php | 8 |
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; } |