Passed
Push — master ( b0c2fc...05ca27 )
by Aimeos
04:13
created

CustomerMigrateListsKeyLaravel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 21
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPreDependencies() 0 3 1
A migrate() 0 5 1
1
<?php
2
3
/**
4
 * @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
5
 * @copyright Aimeos (aimeos.org), 2019
6
 */
7
8
9
namespace Aimeos\MW\Setup\Task;
10
11
12
/**
13
 * Updates key columns
14
 */
15
class CustomerMigrateListsKeyLaravel extends TablesMigrateListsKey
16
{
17
	/**
18
	 * Returns the list of task names which this task depends on.
19
	 *
20
	 * @return string[] List of task names
21
	 */
22
	public function getPreDependencies() : array
23
	{
24
		return ['TablesMigrateListsKey'];
25
	}
26
27
28
	/**
29
	 * Executes the task
30
	 */
31
	public function migrate()
32
	{
33
		$this->msg( 'Update Laravel lists "key" columns', 0 ); $this->status( '' );
34
35
		$this->process( ['db-customer' => 'users_list'] );
36
	}
37
}
38