From 740d8201948f16db15798507fa1220cbd9725259 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 19 Sep 2017 12:42:07 +0200 Subject: Migrate ids to bigint in the dav app Signed-off-by: Joas Schilling --- .../Migration/Version1004Date20170919103422.php | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 apps/dav/lib/Migration/Version1004Date20170919103422.php (limited to 'apps/dav') 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 @@ + ['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'], + ]; + } + +} -- cgit v1.2.3 From c65e591e885ed74eb57785d9816640efa3da2a52 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 26 Sep 2017 16:13:04 +0200 Subject: Restore the sequencial order Signed-off-by: Joas Schilling --- apps/dav/appinfo/info.xml | 2 +- .../Migration/Version1004Date20170919103422.php | 35 ------------------ .../Migration/Version1004Date20170926103422.php | 35 ++++++++++++++++++ .../Migration/Version1002Date20170919101419.php | 25 ------------- .../Migration/Version1002Date20170926101419.php | 25 +++++++++++++ core/Migrations/Version13000Date20170919101637.php | 42 ---------------------- core/Migrations/Version13000Date20170926101637.php | 42 ++++++++++++++++++++++ 7 files changed, 103 insertions(+), 103 deletions(-) delete mode 100644 apps/dav/lib/Migration/Version1004Date20170919103422.php create mode 100644 apps/dav/lib/Migration/Version1004Date20170926103422.php delete mode 100644 apps/twofactor_backupcodes/lib/Migration/Version1002Date20170919101419.php create mode 100644 apps/twofactor_backupcodes/lib/Migration/Version1002Date20170926101419.php delete mode 100644 core/Migrations/Version13000Date20170919101637.php create mode 100644 core/Migrations/Version13000Date20170926101637.php (limited to 'apps/dav') 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 @@ WebDAV endpoint AGPL owncloud.org - 1.4.3 + 1.4.4 diff --git a/apps/dav/lib/Migration/Version1004Date20170919103422.php b/apps/dav/lib/Migration/Version1004Date20170919103422.php deleted file mode 100644 index d57722bf4c1..00000000000 --- a/apps/dav/lib/Migration/Version1004Date20170919103422.php +++ /dev/null @@ -1,35 +0,0 @@ - ['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'], - ]; - } - -} diff --git a/apps/dav/lib/Migration/Version1004Date20170926103422.php b/apps/dav/lib/Migration/Version1004Date20170926103422.php new file mode 100644 index 00000000000..3fcf809b498 --- /dev/null +++ b/apps/dav/lib/Migration/Version1004Date20170926103422.php @@ -0,0 +1,35 @@ + ['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'], + ]; + } + +} diff --git a/apps/twofactor_backupcodes/lib/Migration/Version1002Date20170919101419.php b/apps/twofactor_backupcodes/lib/Migration/Version1002Date20170919101419.php deleted file mode 100644 index 60fbcf796ed..00000000000 --- a/apps/twofactor_backupcodes/lib/Migration/Version1002Date20170919101419.php +++ /dev/null @@ -1,25 +0,0 @@ - ['column1', 'column2'], ...] - * @since 13.0.0 - */ - protected function getColumnsByTable() { - return [ - 'twofactor_backupcodes' => ['id'], - ]; - } - -} diff --git a/apps/twofactor_backupcodes/lib/Migration/Version1002Date20170926101419.php b/apps/twofactor_backupcodes/lib/Migration/Version1002Date20170926101419.php new file mode 100644 index 00000000000..8072ebd6810 --- /dev/null +++ b/apps/twofactor_backupcodes/lib/Migration/Version1002Date20170926101419.php @@ -0,0 +1,25 @@ + ['column1', 'column2'], ...] + * @since 13.0.0 + */ + protected function getColumnsByTable() { + return [ + 'twofactor_backupcodes' => ['id'], + ]; + } + +} diff --git a/core/Migrations/Version13000Date20170919101637.php b/core/Migrations/Version13000Date20170919101637.php deleted file mode 100644 index a793358f922..00000000000 --- a/core/Migrations/Version13000Date20170919101637.php +++ /dev/null @@ -1,42 +0,0 @@ - ['column1', 'column2'], ...] - * @since 13.0.0 - */ - protected function getColumnsByTable() { - return [ - 'admin_settings' => ['id'], - 'authtoken' => ['id'], - 'bruteforce_attempts' => ['id'], - 'comments' => ['id', 'parent_id', 'topmost_parent_id'], - 'filecache' => ['fileid', 'storage', 'parent', 'mimetype', 'mimepart'], - 'file_locks' => ['id'], - 'jobs' => ['id'], - 'mimetypes' => ['id'], - 'mounts' => ['id'], - 'personal_settings' => ['id'], - 'properties' => ['id'], - 'share' => ['id', 'parent', 'file_source'], - 'storages' => ['numeric_id'], - 'systemtag' => ['id'], - 'systemtag_group' => ['systemtagid'], - 'systemtag_object_mapping' => ['systemtagid'], - 'vcategory' => ['id'], - 'vcategory_to_object' => ['objid', 'categoryid'], - ]; - } - -} diff --git a/core/Migrations/Version13000Date20170926101637.php b/core/Migrations/Version13000Date20170926101637.php new file mode 100644 index 00000000000..3eea8a8a3b9 --- /dev/null +++ b/core/Migrations/Version13000Date20170926101637.php @@ -0,0 +1,42 @@ + ['column1', 'column2'], ...] + * @since 13.0.0 + */ + protected function getColumnsByTable() { + return [ + 'admin_settings' => ['id'], + 'authtoken' => ['id'], + 'bruteforce_attempts' => ['id'], + 'comments' => ['id', 'parent_id', 'topmost_parent_id'], + 'filecache' => ['fileid', 'storage', 'parent', 'mimetype', 'mimepart'], + 'file_locks' => ['id'], + 'jobs' => ['id'], + 'mimetypes' => ['id'], + 'mounts' => ['id'], + 'personal_settings' => ['id'], + 'properties' => ['id'], + 'share' => ['id', 'parent', 'file_source'], + 'storages' => ['numeric_id'], + 'systemtag' => ['id'], + 'systemtag_group' => ['systemtagid'], + 'systemtag_object_mapping' => ['systemtagid'], + 'vcategory' => ['id'], + 'vcategory_to_object' => ['objid', 'categoryid'], + ]; + } + +} -- cgit v1.2.3 From 155d451cf82b0feb1c68f9d83877645c5e8a8112 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 27 Sep 2017 15:19:31 +0200 Subject: Fix copy paste errors Signed-off-by: Joas Schilling --- apps/dav/lib/Migration/Version1004Date20170926103422.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/dav') diff --git a/apps/dav/lib/Migration/Version1004Date20170926103422.php b/apps/dav/lib/Migration/Version1004Date20170926103422.php index 3fcf809b498..76adc8fe6a1 100644 --- a/apps/dav/lib/Migration/Version1004Date20170926103422.php +++ b/apps/dav/lib/Migration/Version1004Date20170926103422.php @@ -20,15 +20,15 @@ class Version1004Date20170926103422 extends BigIntMigration { return [ 'addressbooks' => ['id'], 'addressbookchanges' => ['id', 'addressbookid'], - 'calendars' => ['id', 'calendarid'], + 'calendars' => ['id'], 'calendarchanges' => ['id', 'calendarid'], 'calendarobjects' => ['id', 'calendarid'], 'calendarobjects_props' => ['id', 'calendarid', 'objectid'], - 'calendarsubscriptions' => ['id', 'calendarid'], + 'calendarsubscriptions' => ['id'], 'cards' => ['id', 'addressbookid'], 'cards_properties' => ['id', 'addressbookid', 'cardid'], 'dav_shares' => ['id', 'resourceid'], - 'schedulingobjects' => ['id', 'addressbookid'], + 'schedulingobjects' => ['id'], ]; } -- cgit v1.2.3