peliprint/database/migrations/2023_04_08_160505_create_blueprint_table.php
2023-07-12 11:12:09 +02:00

40 lines
No EOL
1,001 B
PHP

<?php
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::dropIfExists('blueprint');
Schema::create('blueprint', function (Blueprint $table) {
$table->id();
$table->string('placeholder')->nullable();
$table->string('developer')->nullable();
$table->string('telemetry')->nullable();
$table->string('panel:id')->nullable();
$table->string('version:cache')->nullable();
$table->string('notification:text')->nullable();
$table->timestamp('timestamp')->useCurrent()->onUpdate(null);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('blueprint');
}
}