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

Version1004Date20170926103422   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 24
rs 10
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getColumnsByTable() 0 15 1
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