Skip to content

Commit

Permalink
Adds user column to activity table migration. (refs #24)
Browse files Browse the repository at this point in the history
  • Loading branch information
miclaus committed Jul 18, 2016
1 parent 891ebdd commit 8061768
Showing 1 changed file with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

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

class AddUserToActivityTable extends Migration {

/**
* Run the migrations.
*
* @return void
*/
public function up ()
{
Schema::table('activity', function (Blueprint $table)
{
$table->integer('user')->after('code');
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down ()
{
Schema::table('activity', function (Blueprint $table)
{
$table->dropColumn('user');
});
}

}

0 comments on commit 8061768

Please sign in to comment.