Completed
Push — master ( 02e5e5...868d49 )
by Daniel
11:13
created

m6_add_block_settings_field::depends_on()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
/**
3
 *
4
 * @package sitemaker
5
 * @copyright (c) 2013 Daniel A. (blitze)
6
 * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
7
 *
8
 */
9
10
namespace blitze\sitemaker\migrations\v20x;
11
12
/**
13
 * Initial schema changes needed for Extension installation
14
 */
15
class m6_add_block_settings_field extends \phpbb\db\migration\migration
16
{
17
	/**
18
	 * @inheritdoc
19
	 */
20
	public static function depends_on()
21
	{
22
		return array(
23
			'\blitze\sitemaker\migrations\converter\c4_convert_primetime_data',
24
		);
25
	}
26
27
	/**
28
	 * Update the sm_blocks schema
29
	 *
30
	 * @return array Array of table schema
31
	 * @access public
32
	 */
33
	public function update_schema()
34
	{
35
		return array(
36
			'add_columns'	=> array(
37
				$this->table_prefix . 'sm_blocks'	=> array(
38
					'settings'		=> array('MTEXT', ''),
39
				),
40
			),
41
		);
42
	}
43
}
44