From 5f3d0a61eaff919a448e6513a5079856e5105058 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 6 Aug 2019 12:51:54 +0200 Subject: [PATCH] Add table to handle calendar delegations Signed-off-by: Roeland Jago Douma --- apps/dav/appinfo/info.xml | 2 +- .../Version1011Date20190806104428.php | 53 +++++++++++++++++++ 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 apps/dav/lib/Migration/Version1011Date20190806104428.php diff --git a/apps/dav/appinfo/info.xml b/apps/dav/appinfo/info.xml index 71b3699b1e..dc90ac5818 100644 --- a/apps/dav/appinfo/info.xml +++ b/apps/dav/appinfo/info.xml @@ -5,7 +5,7 @@ WebDAV WebDAV endpoint WebDAV endpoint - 1.11.0 + 1.11.1 agpl owncloud.org DAV diff --git a/apps/dav/lib/Migration/Version1011Date20190806104428.php b/apps/dav/lib/Migration/Version1011Date20190806104428.php new file mode 100644 index 0000000000..4c237b591e --- /dev/null +++ b/apps/dav/lib/Migration/Version1011Date20190806104428.php @@ -0,0 +1,53 @@ +createTable('dav_cal_proxy'); + $table->addColumn('id', Type::BIGINT, [ + 'autoincrement' => true, + 'notnull' => true, + 'length' => 11, + 'unsigned' => true, + ]); + $table->addColumn('owner_id', Type::STRING, [ + 'notnull' => true, + 'length' => 64, + ]); + $table->addColumn('proxy_id', Type::STRING, [ + 'notnull' => true, + 'length' => 64, + ]); + $table->addColumn('permissions', Type::INTEGER, [ + 'notnull' => false, + 'length' => 4, + 'unsigned' => true, + ]); + + $table->setPrimaryKey(['id']); + $table->addUniqueIndex(['owner_id', 'proxy_id', 'permissions'], 'dav_cal_proxy_uidx'); + + return $schema; + } +}