Fixed #1205 set default nullable in purchase order for strict mode

This commit is contained in:
snipe
2015-09-28 14:08:45 -07:00
parent 9027ed8864
commit 141c77fed7
2 changed files with 31 additions and 2 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
<?php
return array (
'app_version' => 'v2.0-150',
'hash_version' => 'v2.0-150-g9ba2779',
'app_version' => 'v2.0-151',
'hash_version' => 'v2.0-151-g4c662b7',
);
@@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class FixDefaultPurchaseOrder extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
DB::statement('ALTER TABLE `'.DB::getTablePrefix().'licenses` MODIFY `purchase_order` varchar(255) DEFAULT NULL;');
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
DB::statement('ALTER TABLE `'.DB::getTablePrefix().'licenses` MODIFY `purchase_order` varchar(255);');
}
}