diff --git a/database/migrations/2020_10_21_124101_allow_nullable_ospf_columns.php b/database/migrations/2020_10_21_124101_allow_nullable_ospf_columns.php new file mode 100644 index 0000000000..c2b2f944e3 --- /dev/null +++ b/database/migrations/2020_10_21_124101_allow_nullable_ospf_columns.php @@ -0,0 +1,32 @@ +string('ospfAuthType', 64)->nullable()->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('ospf_areas', function (Blueprint $table) { + $table->string('ospfAuthType', 64)->nullable(false)->change(); + }); + } +} diff --git a/misc/db_schema.yaml b/misc/db_schema.yaml index 2b69aefa03..6678801087 100644 --- a/misc/db_schema.yaml +++ b/misc/db_schema.yaml @@ -70,10 +70,10 @@ alert_log: Indexes: PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE } alert_log_device_id_index: { Name: alert_log_device_id_index, Columns: [device_id], Unique: false, Type: BTREE } - alert_log_rule_id_index: { Name: alert_log_rule_id_index, Columns: [rule_id], Unique: false, Type: BTREE } - alert_log_time_logged_index: { Name: alert_log_time_logged_index, Columns: [time_logged], Unique: false, Type: BTREE } alert_log_rule_id_device_id_index: { Name: alert_log_rule_id_device_id_index, Columns: [rule_id, device_id], Unique: false, Type: BTREE } alert_log_rule_id_device_id_state_index: { Name: alert_log_rule_id_device_id_state_index, Columns: [rule_id, device_id, state], Unique: false, Type: BTREE } + alert_log_rule_id_index: { Name: alert_log_rule_id_index, Columns: [rule_id], Unique: false, Type: BTREE } + alert_log_time_logged_index: { Name: alert_log_time_logged_index, Columns: [time_logged], Unique: false, Type: BTREE } alert_rules: Columns: - { Field: id, Type: 'int unsigned', 'Null': false, Extra: auto_increment } @@ -1177,7 +1177,7 @@ ospf_areas: - { Field: id, Type: 'int unsigned', 'Null': false, Extra: auto_increment } - { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' } - { Field: ospfAreaId, Type: varchar(32), 'Null': false, Extra: '' } - - { Field: ospfAuthType, Type: varchar(64), 'Null': false, Extra: '' } + - { Field: ospfAuthType, Type: varchar(64), 'Null': true, Extra: '' } - { Field: ospfImportAsExtern, Type: varchar(128), 'Null': false, Extra: '' } - { Field: ospfSpfRuns, Type: int, 'Null': false, Extra: '' } - { Field: ospfAreaBdrRtrCount, Type: int, 'Null': false, Extra: '' }