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   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 3
Bugs 0 Features 1
Metric Value
c 3
b 0
f 1
dl 0
loc 42
rs 10
wmc 4
lcom 0
cbo 4

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getVersion() 0 4 1
A getReleaseNotes() 0 4 1
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