You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

31 lines
848 B

<?php
use Movim\Migration;
use Illuminate\Database\Schema\Blueprint;
class ChangeLengthColumnsInfoPresence extends Migration
{
public function up()
{
$this->schema->table('infos', function (Blueprint $table) {
$table->string('node', 256)->change();
});
$this->schema->table('presences', function (Blueprint $table) {
$table->string('resource', 256)->change();
$table->text('status')->change();
});
}
public function down()
{
$this->schema->table('infos', function (Blueprint $table) {
$table->string('node', 96)->change();
});
$this->schema->table('presences', function (Blueprint $table) {
$table->string('resource', 128)->change();
$table->string('status', 255)->change();
});
}
}