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

Version1002Date20170926101419   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getColumnsByTable() 0 5 1
1
<?php
2
namespace OCA\TwoFactorBackupCodes\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 Version1002Date20170926101419 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
			'twofactor_backupcodes' => ['id'],
22
		];
23
	}
24
25
}
26