Skip to content

Commit

Permalink
Provisions for strict mode
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Jun 20, 2014
1 parent 5fdb615 commit b365ada
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

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

class MakeAssetLogCheckedoutToNullable extends Migration {

/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
DB::statement('ALTER TABLE asset_logs MODIFY column checkedout_to int(11) NULL');
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}

}




Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

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

class MakeAssetLogPurchasedateToNullable extends Migration {

/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
DB::statement('ALTER TABLE licenses MODIFY column purchase_date date NULL');
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}

}

0 comments on commit b365ada

Please sign in to comment.