<?php

use FI\Modules\Settings\Models\Setting;
use Illuminate\Database\Migrations\Migration;

class VersionIP2 extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        deleteTempFiles();
        deleteViewCache();

        Setting::saveByKey('headerTitleText', 'InvoicePlane');
        Setting::saveByKey('skin', 'skin-invoiceplane.min.css');
        Setting::saveByKey('version', '2.0.0-alpha1');
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
