Merge all migrations into one file

This has some changes that may break the configuration page of the "Blueprint" extension. This will be fixed in a future commit.
This commit is contained in:
purple 2023-04-08 16:13:22 +02:00
parent c861e5ee7c
commit afc11be50b
4 changed files with 51 additions and 0 deletions

View file

@ -1,5 +1,10 @@
<?php
// Should not be included in database migrations.
// If these files are still here when you downloaded this
// and got included in the database migrations, please let
// us know.
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Migrations\Migration;

View file

@ -1,5 +1,10 @@
<?php
// Should not be included in database migrations.
// If these files are still here when you downloaded this
// and got included in the database migrations, please let
// us know.
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Migrations\Migration;

View file

@ -1,5 +1,10 @@
<?php
// Should not be included in database migrations.
// If these files are still here when you downloaded this
// and got included in the database migrations, please let
// us know.
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Migrations\Migration;

View file

@ -0,0 +1,36 @@
<?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::create('blueprint', function (Blueprint $table) {
$table->id();
$table->string('placeholder')->nullable(); // Used for work-in-progress options.
$table->boolean('developer')->nullable();
$table->timestamp('timestamp')->useCurrent()->onUpdate(null);
});
Schema::create('bpkey', function (Blueprint $table) {$table->id();$table->string('k')->nullable();$table->boolean('v')->nullable();$table->timestamp('timestamp')->useCurrent()->onUpdate(null);});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('blueprint');
Schema::dropIfExists('bpkey');
}
}