summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-09-19 12:42:07 +0200
committerJoas Schilling <coding@schilljs.com>2017-09-29 11:10:57 +0200
commit740d8201948f16db15798507fa1220cbd9725259 (patch)
tree4e5990dde441204d7a7eabce6480b72fb1977adb /apps/dav
parentc58ff2990e2a15a69be0e5487a5c6fa3458ac0bd (diff)
downloadnextcloud-server-740d8201948f16db15798507fa1220cbd9725259.tar.gz
nextcloud-server-740d8201948f16db15798507fa1220cbd9725259.zip
Migrate ids to bigint in the dav app
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/Migration/Version1004Date20170919103422.php35
1 files changed, 35 insertions, 0 deletions
diff --git a/apps/dav/lib/Migration/Version1004Date20170919103422.php b/apps/dav/lib/Migration/Version1004Date20170919103422.php
new file mode 100644
index 00000000000..d57722bf4c1
--- /dev/null
+++ b/apps/dav/lib/Migration/Version1004Date20170919103422.php
@@ -0,0 +1,35 @@
+<?php
+namespace OCA\DAV\Migration;
+
+use Doctrine\DBAL\Schema\Schema;
+use OCP\Migration\BigIntMigration;
+use OCP\Migration\SimpleMigrationStep;
+use OCP\Migration\IOutput;
+
+/**
+ * Auto-generated migration step: Please modify to your needs!
+ */
+class Version1004Date20170919103422 extends BigIntMigration {
+
+ /**
+ * @return array Returns an array with the following structure
+ * ['table1' => ['column1', 'column2'], ...]
+ * @since 13.0.0
+ */
+ protected function getColumnsByTable() {
+ return [
+ 'addressbooks' => ['id'],
+ 'addressbookchanges' => ['id', 'addressbookid'],
+ 'calendars' => ['id', 'calendarid'],
+ 'calendarchanges' => ['id', 'calendarid'],
+ 'calendarobjects' => ['id', 'calendarid'],
+ 'calendarobjects_props' => ['id', 'calendarid', 'objectid'],
+ 'calendarsubscriptions' => ['id', 'calendarid'],
+ 'cards' => ['id', 'addressbookid'],
+ 'cards_properties' => ['id', 'addressbookid', 'cardid'],
+ 'dav_shares' => ['id', 'resourceid'],
+ 'schedulingobjects' => ['id', 'addressbookid'],
+ ];
+ }
+
+}