Passed
Push — master ( 5a0518...247ea4 )
by Aimeos
14:19
created

Test   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A up() 0 15 1
1
<?php
2
3
/**
4
 * @license LGPLv3, https://opensource.org/licenses/LGPL-3.0
5
 * @copyright Aimeos (aimeos.org), 2023
6
 */
7
8
9
namespace Aimeos\Upscheme\Task;
10
11
12
class Test extends Base
13
{
14
	public function up()
15
	{
16
		$this->info( 'Creating test schema', 'vv' );
17
18
        $this->db( 'db-test' )->table( 'mshop_test', function( \Aimeos\Upscheme\Schema\Table $table ) {
19
20
			$table->engine = 'InnoDB';
21
22
			$table->id();
23
			$table->string( 'siteid' );
24
			$table->string( 'key', 32 );
25
			$table->string( 'value' );
26
			$table->meta();
27
28
			$table->index( ['key', 'siteid'], 'idx_mstes_key_sid' );
29
		} );
30
	}
31
}
32