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

getColumnsByTable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 22
Code Lines 20

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 20
nc 1
nop 0
dl 0
loc 22
rs 9.2
c 0
b 0
f 0
1
<?php
2
namespace OC\Core\Migrations;
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 Version13000Date20170926101637 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
			'admin_settings' => ['id'],
22
			'authtoken' => ['id'],
23
			'bruteforce_attempts' => ['id'],
24
			'comments' => ['id', 'parent_id', 'topmost_parent_id'],
25
			'filecache' => ['fileid', 'storage', 'parent', 'mimetype', 'mimepart'],
26
			'file_locks' => ['id'],
27
			'jobs' => ['id'],
28
			'mimetypes' => ['id'],
29
			'mounts' => ['id'],
30
			'personal_settings' => ['id'],
31
			'properties' => ['id'],
32
			'share' => ['id', 'parent', 'file_source'],
33
			'storages' => ['numeric_id'],
34
			'systemtag' => ['id'],
35
			'systemtag_group' => ['systemtagid'],
36
			'systemtag_object_mapping' => ['systemtagid'],
37
			'vcategory' => ['id'],
38
			'vcategory_to_object' => ['objid', 'categoryid'],
39
		];
40
	}
41
42
}
43