123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- class CreateInstanceScansTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('instance_scans', function (Blueprint $table) {
- $table->bigIncrements('id');
- $table->integer('code')->nullable()->index();
- $table->bigInteger('instance_id')->unsigned()->nullable()->index();
- $table->string('domain')->nullable()->index();
- $table->bigInteger('user_count')->unsigned()->nullable();
- $table->bigInteger('post_count')->unsigned()->nullable();
- $table->bigInteger('mau_count')->unsigned()->nullable();
- $table->json('nodeinfo')->nullable();
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('instance_scans');
- }
- }
|