diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-09-29 12:23:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-29 12:23:41 +0200 |
commit | 870d71689ab95a821d041a972d77637a9a2be988 (patch) | |
tree | 6f4816807c0249ae56d4ccf9eac3799df4cd78ef /apps/dav | |
parent | 993dc77d9ea6691d839c02ba0e75d7afafe33540 (diff) | |
parent | f2054123713289b16d13701d2aa73691653f8d46 (diff) | |
download | nextcloud-server-870d71689ab95a821d041a972d77637a9a2be988.tar.gz nextcloud-server-870d71689ab95a821d041a972d77637a9a2be988.zip |
Merge pull request #6563 from nextcloud/bigint-ids
Migrate ID columns to bigint
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/appinfo/info.xml | 2 | ||||
-rw-r--r-- | apps/dav/lib/Migration/Version1004Date20170926103422.php | 35 |
2 files changed, 36 insertions, 1 deletions
diff --git a/apps/dav/appinfo/info.xml b/apps/dav/appinfo/info.xml index b104cb7fd69..9b500c9f300 100644 --- a/apps/dav/appinfo/info.xml +++ b/apps/dav/appinfo/info.xml @@ -5,7 +5,7 @@ <description>WebDAV endpoint</description> <licence>AGPL</licence> <author>owncloud.org</author> - <version>1.4.3</version> + <version>1.4.4</version> <default_enable/> <types> <filesystem/> diff --git a/apps/dav/lib/Migration/Version1004Date20170926103422.php b/apps/dav/lib/Migration/Version1004Date20170926103422.php new file mode 100644 index 00000000000..76adc8fe6a1 --- /dev/null +++ b/apps/dav/lib/Migration/Version1004Date20170926103422.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 Version1004Date20170926103422 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'], + 'calendarchanges' => ['id', 'calendarid'], + 'calendarobjects' => ['id', 'calendarid'], + 'calendarobjects_props' => ['id', 'calendarid', 'objectid'], + 'calendarsubscriptions' => ['id'], + 'cards' => ['id', 'addressbookid'], + 'cards_properties' => ['id', 'addressbookid', 'cardid'], + 'dav_shares' => ['id', 'resourceid'], + 'schedulingobjects' => ['id'], + ]; + } + +} |