mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Increase length of devices_attribs.attrib_type column (#13395)
* Increase length of devices_attribs.attrib_type column closes #13381 Signed-off-by: Mike Beattie <mike@ethernal.org> * Update db_schema.yaml Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class IncreaseLengthOfAttribTypeColumn extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('devices_attribs', function (Blueprint $table) {
|
||||
$table->string('attrib_type', 64)->change();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('devices_attribs', function (Blueprint $table) {
|
||||
$table->string('attrib_type', 32)->change();
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -554,7 +554,7 @@ devices_attribs:
|
||||
Columns:
|
||||
- { Field: attrib_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
|
||||
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
|
||||
- { Field: attrib_type, Type: varchar(32), 'Null': false, Extra: '' }
|
||||
- { Field: attrib_type, Type: varchar(64), 'Null': false, Extra: '' }
|
||||
- { Field: attrib_value, Type: text, 'Null': false, Extra: '' }
|
||||
- { Field: updated, Type: timestamp, 'Null': false, Extra: 'on update CURRENT_TIMESTAMP', Default: CURRENT_TIMESTAMP }
|
||||
Indexes:
|
||||
|
||||
Reference in New Issue
Block a user