Accounts can now have IBAN.

This commit is contained in:
James Cole
2015-07-03 12:51:14 +02:00
parent 854368a8f3
commit d8b65f62e7
12 changed files with 92 additions and 52 deletions

View File

@@ -1,39 +0,0 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
/**
* Class ChangesForV3451
*/
class ChangesForV3451 extends Migration
{
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table(
'accounts', function (Blueprint $table) {
$table->dropColumn('iban');
}
);
}
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table(
'accounts', function (Blueprint $table) {
$table->string('iban', 38)->nullable();
}
);
}
}

View File

@@ -1,10 +1,27 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
/**
* Class ChangesForV3462
*/
class ChangesForV3462 extends Migration
{
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table(
'accounts', function (Blueprint $table) {
$table->dropColumn('iban');
}
);
}
/**
* Run the migrations.
*
@@ -13,16 +30,10 @@ class ChangesForV3462 extends Migration
public function up()
{
// add IBAN to accounts:
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
Schema::table(
'accounts', function (Blueprint $table) {
$table->string('iban')->nullable();
}
);
}
}