Skip to content

Commit

Permalink
Fixes #183 - added employee number to users
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Jul 8, 2014
1 parent 57b3f6c commit 89a8f3c
Showing 1 changed file with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php

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

class AddEmployeeIdToUsers extends Migration {

/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::table('users', function ($table) {
$table->text('employee_num','50')->nullable()->default(NULL);
});
}

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

}

}

0 comments on commit 89a8f3c

Please sign in to comment.