Completed
Push — master ( 3ff2c1...c2a44b )
by Aimeos
09:24
created

TablesCreateFosUser::migrate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 13
rs 9.4285
cc 1
eloc 7
nc 1
nop 0
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 TablesCreateFosUser 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 FOS user bundle 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