GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — integration (#2604)
by Brendan
04:35
created

migration_300::getVersion()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 2
c 1
b 1
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
namespace SymphonyCms\Installer\Migrations;
3
4
use SymphonyCms\Installer\Lib\Migration;
5
use Symphony;
6
use Exception;
7
8
class migration_300 extends Migration
9
{
10
    public static function getVersion()
11
    {
12
        return '3.0.0-alpha.1';
13
    }
14
15
    public static function getReleaseNotes()
16
    {
17
        return 'http://getsymphony.com/download/releases/version/3.0.0/';
18
    }
19
20
    public static function upgrade()
21
    {
22
        // Add the delegate order field, RE: #2354
23
        try {
24
            Symphony::Database()->query("
25
                ALTER TABLE `tbl_extensions_delegates`
26
                ADD `order` INT(11) SIGNED NOT NULL DEFAULT '0',
27
            ");
28
        } catch (Exception $ex) {
29
        }
30
31
        // Add in new Session configuration options, RE: #2135
32
        Symphony::Configuration()->setArray(array(
33
            'session' => array(
34
                'admin_session_name' => 'symphony_admin',
35
                'public_session_name' => 'symphony_public',
36
                'admin_session_expires' => '2 weeks',
37
                'public_session_expires' => '2 weeks',
38
                'session_gc_probability' => '1',
39
                'session_gc_divisor' => Symphony::Configuration()->get('session_gc_divisor', 'symphony')
40
            )
41
        ));
42
43
        // Update the version information
44
        return parent::upgrade();
45
    }
46
}
47