diff --git a/database/migrations/2023_09_01_084057_application_new_defaults.php b/database/migrations/2023_09_01_084057_application_new_defaults.php new file mode 100644 index 0000000000..c05329774a --- /dev/null +++ b/database/migrations/2023_09_01_084057_application_new_defaults.php @@ -0,0 +1,34 @@ +string('app_instance')->default('')->change(); + $table->string('app_status', 1024)->default('')->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('applications', function (Blueprint $table) { + $table->string('app_instance')->default(null)->change(); + $table->string('app_status', 1024)->default(null)->change(); + }); + } +} diff --git a/misc/db_schema.yaml b/misc/db_schema.yaml index 00e1d906ff..729c6b859e 100644 --- a/misc/db_schema.yaml +++ b/misc/db_schema.yaml @@ -183,9 +183,9 @@ applications: - { Field: app_state, Type: varchar(32), 'Null': false, Extra: '', Default: UNKNOWN } - { Field: discovered, Type: tinyint, 'Null': false, Extra: '', Default: '0' } - { Field: app_state_prev, Type: varchar(32), 'Null': true, Extra: '' } - - { Field: app_status, Type: varchar(1024), 'Null': false, Extra: '' } + - { Field: app_status, Type: varchar(1024), 'Null': false, Extra: '', Default: '' } - { Field: timestamp, Type: timestamp, 'Null': false, Extra: 'on update CURRENT_TIMESTAMP', Default: CURRENT_TIMESTAMP } - - { Field: app_instance, Type: varchar(255), 'Null': false, Extra: '' } + - { Field: app_instance, Type: varchar(255), 'Null': false, Extra: '', Default: '' } - { Field: data, Type: longtext, 'Null': true, Extra: '' } Indexes: PRIMARY: { Name: PRIMARY, Columns: [app_id], Unique: true, Type: BTREE }