Add IBAN field.

This commit is contained in:
James Cole 2015-07-03 12:27:49 +02:00
parent 571165c2bb
commit 4a20eef351
2 changed files with 39 additions and 5 deletions

View File

@ -1,6 +1,7 @@
<?php <?php
use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
/** /**
* Class ChangesForV3451 * Class ChangesForV3451
@ -14,12 +15,13 @@ class ChangesForV3451 extends Migration
*/ */
public function down() public function down()
{ {
Schema::table(
'accounts', function (Blueprint $table) {
$table->dropColumn('iban');
}
);
} }
//$table->smallInteger('reminder_skip')->unsigned();
//$table->boolean('remind_me');
/** /**
* Run the migrations. * Run the migrations.
* *
@ -27,7 +29,11 @@ class ChangesForV3451 extends Migration
*/ */
public function up() public function up()
{ {
Schema::table(
'accounts', function (Blueprint $table) {
$table->string('iban', 38)->nullable();
}
);
} }
} }

View File

@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class ChangesForV3462 extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
// add IBAN to accounts:
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}