Conditions | 3 |
Paths | 4 |
Total Lines | 27 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
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'); |
||
44 | |||
45 | // Update the version information |
||
46 | return parent::upgrade(); |
||
47 | } |
||
48 | } |
||
49 |