Skip to content

Commit

Permalink
Actually fix #801 (forgot the migration file)
Browse files Browse the repository at this point in the history
  • Loading branch information
edhelas committed Feb 27, 2019
1 parent 627f380 commit a9458dd
Showing 1 changed file with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php

use Movim\Migration;
use Illuminate\Database\Schema\Blueprint;

class ChangeLengthColumnsConferencesRostersUsers extends Migration
{
public function up()
{
$this->schema->table('conferences', function(Blueprint $table) {
$table->string('name', 512)->change();
$table->string('nick', 256)->change();
});

$this->schema->table('rosters', function(Blueprint $table) {
$table->string('name', 256)->change();
});

$this->schema->table('users', function(Blueprint $table) {
$table->string('cssurl', 256)->change();
});
}

public function down()
{
$this->schema->table('conferences', function(Blueprint $table) {
$table->string('name', 128)->change();
$table->string('nick', 128)->change();
});

$this->schema->table('rosters', function(Blueprint $table) {
$table->string('name', 128)->change();
});

$this->schema->table('users', function(Blueprint $table) {
$table->string('cssurl', 128)->change();
});
}
}

0 comments on commit a9458dd

Please sign in to comment.