1 | <?php |
||
3 | namespace SymphonyCms\Installer\Migrations; |
||
4 | |||
5 | use SymphonyCms\Installer\Lib\Migration; |
||
6 | use Symphony; |
||
7 | use Exception; |
||
8 | |||
9 | class migration_250 extends Migration |
||
10 | { |
||
11 | public static function getVersion() |
||
15 | |||
16 | public static function getReleaseNotes() |
||
20 | |||
21 | public static function upgrade() |
||
22 | { |
||
23 | // Add association interfaces |
||
24 | try { |
||
25 | Symphony::Database()->query(' |
||
26 | ALTER TABLE `tbl_sections_association` |
||
27 | ADD `interface` VARCHAR(100) COLLATE utf8_unicode_ci DEFAULT NULL, |
||
28 | ADD `editor` VARCHAR(100) COLLATE utf8_unicode_ci DEFAULT NULL; |
||
29 | '); |
||
30 | } catch (Exception $ex) { |
||
31 | } |
||
32 | |||
33 | // Remove show_association #2082 |
||
34 | try { |
||
35 | Symphony::Database()->query(' |
||
36 | ALTER TABLE `tbl_fields_select` DROP COLUMN show_association; |
||
37 | '); |
||
38 | } catch (Exception $ex) { |
||
39 | } |
||
40 | |||
41 | // Remove XSRF configuration options #2118 |
||
42 | Symphony::Configuration()->remove('token_lifetime', 'symphony'); |
||
43 | Symphony::Configuration()->remove('invalidate_tokens_on_request', 'symphony'); |
||
49 |