From 891b6c42e2f68fb764feb3b6dda50d388bcacaf8 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sat, 22 Nov 2014 19:41:20 +0200 Subject: [PATCH] Fix #199 - migrations problem for sqlite --- .../migrations/2013_11_05_180133_confide_setup_users_table.php | 2 +- .../migrations/2014_11_04_200406_allow_null_client_currency.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/database/migrations/2013_11_05_180133_confide_setup_users_table.php b/app/database/migrations/2013_11_05_180133_confide_setup_users_table.php index d00a491ca517..2bfb38b07f77 100755 --- a/app/database/migrations/2013_11_05_180133_confide_setup_users_table.php +++ b/app/database/migrations/2013_11_05_180133_confide_setup_users_table.php @@ -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(); diff --git a/app/database/migrations/2014_11_04_200406_allow_null_client_currency.php b/app/database/migrations/2014_11_04_200406_allow_null_client_currency.php index 38952ce90d96..8007e8cb65c4 100644 --- a/app/database/migrations/2014_11_04_200406_allow_null_client_currency.php +++ b/app/database/migrations/2014_11_04_200406_allow_null_client_currency.php @@ -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;'); }); }