mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
39 lines
969 B
PHP
39 lines
969 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateUikitTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('uikit', function (Blueprint $table) {
|
|
$table->bigIncrements('id');
|
|
$table->string('k')->unique()->index();
|
|
$table->text('v')->nullable();
|
|
$table->json('meta')->nullable();
|
|
// default value for rollbacks
|
|
$table->text('defv')->nullable();
|
|
// delta history
|
|
$table->text('dhis')->nullable();
|
|
$table->unsignedInteger('edit_count')->default(0)->nullable();
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('uikit');
|
|
}
|
|
}
|