From c3868cf7bedc1a73aa565dba3321710680a245d0 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 20 Apr 2018 20:43:41 -0600 Subject: [PATCH] Add federation fields to profile migration --- .../2018_04_16_002611_create_profiles_table.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/database/migrations/2018_04_16_002611_create_profiles_table.php b/database/migrations/2018_04_16_002611_create_profiles_table.php index 4014e8cd4..b469839e8 100644 --- a/database/migrations/2018_04_16_002611_create_profiles_table.php +++ b/database/migrations/2018_04_16_002611_create_profiles_table.php @@ -16,14 +16,25 @@ class CreateProfilesTable extends Migration Schema::create('profiles', function (Blueprint $table) { $table->increments('id'); $table->unsignedInteger('user_id')->nullable(); - $table->string('username')->nullable()->unique()->index(); + $table->string('domain')->nullable(); + $table->string('username')->nullable()->index(); $table->string('name')->nullable(); $table->string('bio', 150)->nullable(); $table->string('location')->nullable(); $table->string('website')->nullable(); - $table->string('remote_url')->nullable(); $table->text('keybase_proof')->nullable(); $table->boolean('is_private')->default(false); + // PuSH/WebSub + $table->string('verify_token')->nullable(); + $table->string('secret')->nullable(); + // RSA Key Pair + $table->text('private_key')->nullable(); + $table->text('public_key')->nullable(); + // URLs + $table->string('remote_url')->nullable(); + $table->string('salmon_url')->nullable(); + $table->string('hub_url')->nullable(); + $table->unique(['domain', 'username']); $table->timestamps(); }); }