mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix #199 - migrations problem for sqlite
This commit is contained in:
parent
7ebd690852
commit
891b6c42e2
@ -231,7 +231,7 @@ class ConfideSetupUsersTable extends Migration {
|
|||||||
$t->increments('id');
|
$t->increments('id');
|
||||||
$t->unsignedInteger('user_id');
|
$t->unsignedInteger('user_id');
|
||||||
$t->unsignedInteger('account_id')->index();
|
$t->unsignedInteger('account_id')->index();
|
||||||
$t->unsignedInteger('currency_id')->default(1);
|
$t->unsignedInteger('currency_id')->nullable();
|
||||||
$t->timestamps();
|
$t->timestamps();
|
||||||
$t->softDeletes();
|
$t->softDeletes();
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ class AllowNullClientCurrency extends Migration {
|
|||||||
{
|
{
|
||||||
Schema::table('clients', function($table)
|
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;');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user