feat migrations: create new migration for cache value

This commit is contained in:
prplwtf 2024-08-19 12:09:10 +02:00
parent 7a047d51b6
commit e90a15d197

View file

@ -0,0 +1,41 @@
<?php
/* BlueprintFramework database migration */
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Migrations\Migration;
class CreateBlueprintTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('blueprint', function (Blueprint $table) {
/*
Database value for keeping imported stylesheets
and scripts up-to-date for the end-user by
bypassing browser cache.
*/
$table->string('cache')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('blueprint', function (Blueprint $table) {
$table->dropColumn('cache');
});
}
}