peliprint/database/migrations/2023_02_25_194901_create_blueprint_test.php
purple 25386b6a49 Created database migration
Currently only for placeholders, just to test my admin thingy.
2023-02-26 14:36:42 +01:00

34 lines
No EOL
795 B
PHP

<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Migrations\Migration;
class CreateBlueprintTest extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('blueprint', function (Blueprint $table) {
$table->id();
$table->string('placeholder:1')->nullable();
$table->string('placeholder:2')->nullable();
$table->string('placeholder:3')->nullable();
$table->timestamp('timestamp')->useCurrent()->onUpdate(null);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('blueprint');
}
}