mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-19 20:14:09 -08:00
30 lines
674 B
PHP
Executable file
30 lines
674 B
PHP
Executable file
<?php
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
class AddVersionFooter extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::table('settings', function (Blueprint $table) {
|
|
$table->char('version_footer', 5)->nullable()->default('on');
|
|
});
|
|
}
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::table('settings', function (Blueprint $table) {
|
|
$table->dropColumn('version_footer');
|
|
});
|
|
}
|
|
}
|