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

Test::up()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 15
rs 9.9666
cc 1
nc 1
nop 0
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