| 1 | <?php |
||
| 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() |
||
| 14 | |||
| 15 | public static function getReleaseNotes() |
||
| 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 | } |
||
| 47 |