File: /home/cursos.ril.es/database/migrations/2016_08_12_104119_modify_profesores.php
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class ModifyProfesores extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('profesores', function (Blueprint $table) {
$table->string('imagen')->nullable();
$table->string('facebook')->nullable();
$table->string('twitter')->nullable();
$table->string('linkedin')->nullable();
$table->text('descripcion')->nullable();
$table->string('website')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('profesores', function (Blueprint $table) {
$table->dropColumn('imagen');
$table->dropColumn('facebook');
$table->dropColumn('twitter');
$table->dropColumn('linkedin');
$table->dropColumn('descripcion');
$table->dropColumn('website');
});
}
}