m8_cron_data::depends_on()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 *
4
 * Ideas extension for the phpBB Forum Software package.
5
 *
6
 * @copyright (c) phpBB Limited <https://www.phpbb.com>
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace phpbb\ideas\migrations;
12
13
class m8_cron_data extends \phpbb\db\migration\migration
14
{
15
	public function effectively_installed()
16
	{
17
		return $this->config->offsetExists('ideas_cron_last_run');
18
	}
19
20
	public static function depends_on()
21
	{
22
		return array('\phpbb\ideas\migrations\m1_initial_schema');
23
	}
24
25
	public function update_data()
26
	{
27
		return array(
28
			array('config.add', array('ideas_cron_last_run', 0, true)),
29
		);
30
	}
31
}
32