mirror of https://github.com/pixelfed/pixelfed
Add migration
parent
36a722aa3c
commit
fa6ecd8df1
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateInstanceActorsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('instance_actors', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->text('private_key')->nullable();
|
||||
$table->text('public_key')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('instance_actors');
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue