peliprint/database/migrations/2023_04_08_160505_create_blueprint_table.php
purple 839b602b6c Telemetry ID is now replaced with a Panel ID.
This ID contains a random string and the version of Blueprint and will be used for API calls and telemetry once that has been added.
2023-05-31 10:40:03 +02:00

45 lines
No EOL
1.2 KiB
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(); // Used for work-in-progress options.
$table->string('developer')->nullable(); // Somehow I can't make it work with a boolean.
$table->string('developer:cmd')->nullable();
$table->string('developer:log')->nullable();
$table->string('telemetry')->nullable();
$table->string('telemetry:id')->nullable();
$table->string('panel:id')->nullable();
$table->string('notification:text')->nullable();
$table->timestamp('timestamp')->useCurrent()->onUpdate(null);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('blueprint');
}
}