mirror of https://github.com/MISP/MISP
chg: [appmodel] Set default value for warninglist_entry_count
parent
9ca82a568e
commit
28a05576a4
|
@ -86,7 +86,7 @@ class AppModel extends Model
|
|||
39 => false, 40 => false, 41 => false, 42 => false, 43 => false, 44 => false,
|
||||
45 => false, 46 => false, 47 => false, 48 => false, 49 => false, 50 => false,
|
||||
51 => false, 52 => false, 53 => false, 54 => false, 55 => false, 56 => false,
|
||||
57 => false,
|
||||
57 => false, 58 => false
|
||||
);
|
||||
|
||||
public $advanced_updates_description = array(
|
||||
|
@ -1417,6 +1417,9 @@ class AppModel extends Model
|
|||
case 57:
|
||||
$sqlArray[] = sprintf("INSERT INTO `admin_settings` (`setting`, `value`) VALUES ('fix_login', %s);", time());
|
||||
break;
|
||||
case 58:
|
||||
$sqlArray[] = "ALTER TABLE `warninglists` MODIFY COLUMN `warninglist_entry_count` int(11) unsigned NOT NULL DEFAULT 0;";
|
||||
break;
|
||||
case 'fixNonEmptySharingGroupID':
|
||||
$sqlArray[] = 'UPDATE `events` SET `sharing_group_id` = 0 WHERE `distribution` != 4;';
|
||||
$sqlArray[] = 'UPDATE `attributes` SET `sharing_group_id` = 0 WHERE `distribution` != 4;';
|
||||
|
|
|
@ -6693,13 +6693,13 @@
|
|||
},
|
||||
{
|
||||
"column_name": "warninglist_entry_count",
|
||||
"is_nullable": "YES",
|
||||
"is_nullable": "NO",
|
||||
"data_type": "int",
|
||||
"character_maximum_length": null,
|
||||
"numeric_precision": "10",
|
||||
"collation_name": null,
|
||||
"column_type": "int(11) unsigned",
|
||||
"column_default": null,
|
||||
"column_default": "0",
|
||||
"extra": ""
|
||||
}
|
||||
],
|
||||
|
@ -7167,5 +7167,5 @@
|
|||
"id": true
|
||||
}
|
||||
},
|
||||
"db_version": "57"
|
||||
"db_version": "58"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue