Completed
Pull Request — master (#6563)
by Joas
14:47
created

Version1004Date20170926103422::getColumnsByTable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 13
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 15
rs 9.4285
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