|
1
|
|
|
<?php |
|
2
|
|
|
namespace OCA\DAV\Migration; |
|
3
|
|
|
|
|
4
|
|
|
use Doctrine\DBAL\Schema\Schema; |
|
5
|
|
|
use OCP\Migration\BigIntMigration; |
|
6
|
|
|
use OCP\Migration\SimpleMigrationStep; |
|
7
|
|
|
use OCP\Migration\IOutput; |
|
8
|
|
|
|
|
9
|
|
|
/** |
|
10
|
|
|
* Auto-generated migration step: Please modify to your needs! |
|
11
|
|
|
*/ |
|
12
|
|
|
class Version1004Date20170926103422 extends BigIntMigration { |
|
13
|
|
|
|
|
14
|
|
|
/** |
|
15
|
|
|
* @return array Returns an array with the following structure |
|
16
|
|
|
* ['table1' => ['column1', 'column2'], ...] |
|
17
|
|
|
* @since 13.0.0 |
|
18
|
|
|
*/ |
|
19
|
|
|
protected function getColumnsByTable() { |
|
20
|
|
|
return [ |
|
21
|
|
|
'addressbooks' => ['id'], |
|
22
|
|
|
'addressbookchanges' => ['id', 'addressbookid'], |
|
23
|
|
|
'calendars' => ['id'], |
|
24
|
|
|
'calendarchanges' => ['id', 'calendarid'], |
|
25
|
|
|
'calendarobjects' => ['id', 'calendarid'], |
|
26
|
|
|
'calendarobjects_props' => ['id', 'calendarid', 'objectid'], |
|
27
|
|
|
'calendarsubscriptions' => ['id'], |
|
28
|
|
|
'cards' => ['id', 'addressbookid'], |
|
29
|
|
|
'cards_properties' => ['id', 'addressbookid', 'cardid'], |
|
30
|
|
|
'dav_shares' => ['id', 'resourceid'], |
|
31
|
|
|
'schedulingobjects' => ['id'], |
|
32
|
|
|
]; |
|
33
|
|
|
} |
|
34
|
|
|
|
|
35
|
|
|
} |
|
36
|
|
|
|