Passed
Branch master (560f53)
by Aimeos
13:02
created

TablesCreateCms   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 5
c 2
b 0
f 0
dl 0
loc 22
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A migrate() 0 6 1
A getPostDependencies() 0 3 1
1
<?php
2
3
/**
4
 * @license LGPLv3, https://opensource.org/licenses/LGPL-3.0
5
 * @copyright Aimeos (aimeos.org), 2021
6
 */
7
8
9
namespace Aimeos\MW\Setup\Task;
10
11
12
/**
13
 * Creates all CMS tables.
14
 */
15
class TablesCreateCms extends \Aimeos\MW\Setup\Task\TablesCreateMShop
16
{
17
	/**
18
	 * Returns the list of task names which depends on this task.
19
	 *
20
	 * @return string[] List of task names
21
	 */
22
	public function getPostDependencies() : array
23
	{
24
		return ['MShopAddLocaleLangCurData'];
25
	}
26
27
28
	/**
29
	 * Creates the CMS tables
30
	 */
31
	public function migrate()
32
	{
33
		$this->msg( 'Creating CMS tables', 0, '' );
34
35
		$ds = DIRECTORY_SEPARATOR;
36
		$this->setupSchema( ['db-cms' => 'default' . $ds . 'schema' . $ds . 'cms.php'] );
37
	}
38
}
39