mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
commit
a1b0d3d3c0
1 changed files with 36 additions and 0 deletions
|
@ -0,0 +1,36 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::table('instances', function (Blueprint $table) {
|
||||||
|
$table->boolean('active_deliver')->nullable()->index()->after('domain');
|
||||||
|
$table->boolean('valid_nodeinfo')->nullable();
|
||||||
|
$table->timestamp('nodeinfo_last_fetched')->nullable();
|
||||||
|
$table->boolean('delivery_timeout')->default(false);
|
||||||
|
$table->timestamp('delivery_next_after')->nullable();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::table('instances', function (Blueprint $table) {
|
||||||
|
$table->dropColumn('active_deliver');
|
||||||
|
$table->dropColumn('valid_nodeinfo');
|
||||||
|
$table->dropColumn('nodeinfo_last_fetched');
|
||||||
|
$table->dropColumn('delivery_timeout');
|
||||||
|
$table->dropColumn('delivery_next_after');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
Loading…
Reference in a new issue