mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Catch a sqlite error.
This commit is contained in:
parent
0afe2a680e
commit
c5a3de09cd
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Illuminate\Database\Migrations\Migration;
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\QueryException;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -35,8 +36,13 @@ class ChangesFor325 extends Migration
|
|||||||
Schema::table(
|
Schema::table(
|
||||||
'budget_limits', function (Blueprint $table) {
|
'budget_limits', function (Blueprint $table) {
|
||||||
//$table->dropIndex('unique_ci_combo');
|
//$table->dropIndex('unique_ci_combo');
|
||||||
$table->dropUnique('unique_ci_combi');
|
try {
|
||||||
});
|
$table->dropUnique('unique_ci_combi');
|
||||||
|
} catch (QueryException $e) {
|
||||||
|
// don't care.
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user