mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Check if the eol_explicit column exists yet, add it if not
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
0b39591d88
commit
ea960c39bb
|
@ -18,7 +18,9 @@ class DenormalizedEolAndAddColumnForExplicitDateToAssets extends Migration
|
|||
public function up()
|
||||
{
|
||||
Schema::table('assets', function (Blueprint $table) {
|
||||
$table->boolean('eol_explicit')->default(false)->after('asset_eol_date');
|
||||
if (!Schema::hasColumn('assets', 'eol_explicit')) {
|
||||
$table->boolean('eol_explicit')->default(false)->after('asset_eol_date');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue