mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class ConfigValueToMediumText extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('config', function (Blueprint $table) {
|
||||
$table->mediumText('config_value')->change();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('config', function (Blueprint $table) {
|
||||
$table->string('config_value', 512)->change();
|
||||
});
|
||||
}
|
||||
}
|
@@ -439,7 +439,7 @@ config:
|
||||
Columns:
|
||||
- { Field: config_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
|
||||
- { Field: config_name, Type: varchar(255), 'Null': false, Extra: '' }
|
||||
- { Field: config_value, Type: varchar(512), 'Null': false, Extra: '' }
|
||||
- { Field: config_value, Type: mediumtext, 'Null': false, Extra: '' }
|
||||
Indexes:
|
||||
PRIMARY: { Name: PRIMARY, Columns: [config_id], Unique: true, Type: BTREE }
|
||||
config_config_name_unique: { Name: config_config_name_unique, Columns: [config_name], Unique: true, Type: BTREE }
|
||||
|
Reference in New Issue
Block a user