From 45930a31c3ea3061f6eb164d81cbad85325f35fc Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 1 Sep 2018 22:42:30 -0600 Subject: [PATCH 1/2] Add new migration --- ...43240_update_profile_table_add_ap_urls.php | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 database/migrations/2018_09_02_043240_update_profile_table_add_ap_urls.php diff --git a/database/migrations/2018_09_02_043240_update_profile_table_add_ap_urls.php b/database/migrations/2018_09_02_043240_update_profile_table_add_ap_urls.php new file mode 100644 index 000000000..1703bce2e --- /dev/null +++ b/database/migrations/2018_09_02_043240_update_profile_table_add_ap_urls.php @@ -0,0 +1,33 @@ +string('inbox_url')->nullable()->after('sharedInbox'); + $table->string('outbox_url')->nullable()->after('inbox_url'); + $table->string('follower_url')->nullable()->after('outbox_url'); + $table->string('following_url')->nullable()->after('follower_url'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +} From 86bbcd73cfb8ccd6aba003830619a638cfebfc2f Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 1 Sep 2018 22:43:11 -0600 Subject: [PATCH 2/2] Add Instance model/migration --- app/Instance.php | 10 +++++ ...18_09_02_043609_create_instances_table.php | 39 +++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 app/Instance.php create mode 100644 database/migrations/2018_09_02_043609_create_instances_table.php diff --git a/app/Instance.php b/app/Instance.php new file mode 100644 index 000000000..e9a61acaa --- /dev/null +++ b/app/Instance.php @@ -0,0 +1,10 @@ +bigIncrements('id'); + $table->string('domain')->unique()->index(); + $table->string('url')->nullable(); + $table->string('name')->nullable(); + $table->string('admin_url')->nullable(); + $table->string('limit_reason')->nullable(); + $table->boolean('unlisted')->default(false); + $table->boolean('auto_cw')->default(false); + $table->boolean('banned')->default(false); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('instances'); + } +}