Fix #199 - migrations problem for sqlite

This commit is contained in:
Hillel Coren 2014-11-22 19:41:20 +02:00
parent 7ebd690852
commit 891b6c42e2
2 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ class ConfideSetupUsersTable extends Migration {
$t->increments('id');
$t->unsignedInteger('user_id');
$t->unsignedInteger('account_id')->index();
$t->unsignedInteger('currency_id')->default(1);
$t->unsignedInteger('currency_id')->nullable();
$t->timestamps();
$t->softDeletes();

View File

@ -14,7 +14,7 @@ class AllowNullClientCurrency extends Migration {
{
Schema::table('clients', function($table)
{
DB::statement('ALTER TABLE `clients` MODIFY `currency_id` INTEGER UNSIGNED NULL;');
//DB::statement('ALTER TABLE `clients` MODIFY `currency_id` INTEGER UNSIGNED NULL;');
});
}