Completed
Push — master ( ed1b14...81e2f6 )
by Aimeos
02:53
created

TablesCreateLaravel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPostDependencies() 0 4 1
A migrate() 0 13 1
1
<?php
2
3
/**
4
 * @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
5
 * @copyright Aimeos (aimeos.org), 2015
6
 */
7
8
9
namespace Aimeos\MW\Setup\Task;
10
11
12
/**
13
 * Creates all required tables.
14
 */
15
class TablesCreateLaravel extends \Aimeos\MW\Setup\Task\TablesCreateMShop
16
{
17
	/**
18
	 * Returns the list of task names which depends on this task.
19
	 *
20
	 * @return array List of task names
21
	 */
22
	public function getPostDependencies()
23
	{
24
		return array( 'MShopAddTypeData' );
25
	}
26
27
28
	/**
29
	 * Migrate database schema
30
	 */
31
	public function migrate()
32
	{
33
		$this->msg( 'Creating Aimeos Laravel user tables', 0 );
34
		$this->status( '' );
35
36
		$ds = DIRECTORY_SEPARATOR;
37
38
		$files = array(
39
			'db-customer' => __DIR__ . $ds . 'default' . $ds . 'schema' . $ds . 'customer.php',
40
		);
41
42
		$this->setupSchema( $files );
43
	}
44
}
45