mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
for the applications table set the defaults for app_instance and app_instance to '' (#15278)
* add migration file for new defaults for applications table * update the db_schema yaml and tweak the migration so it does not change the varchar size for app_status
This commit is contained in:
committed by
GitHub
parent
8eeb83928f
commit
6dbfbe99bc
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class ApplicationNewDefaults extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('applications', function (Blueprint $table) {
|
||||
$table->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();
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user