diff --git a/app/Http/Controllers/Airtable/Sync/ListingController.php b/app/Http/Controllers/Airtable/Sync/ListingController.php index 9af053a..c76bb00 100644 --- a/app/Http/Controllers/Airtable/Sync/ListingController.php +++ b/app/Http/Controllers/Airtable/Sync/ListingController.php @@ -109,6 +109,14 @@ public function syncListing () { $list->founded = @$l["fields"]["Founded"]; $list->closed = @$l["fields"]["Closed"]; + $list->mastodon = @$l["fields"]["Mastodon"]; + $list->rss = @$l["fields"]["RSS"]; + $list->bluesky_url = @$l["fields"]["Bluesky URL"]; + $list->threads = @$l["fields"]["Threads"]; + $list->whatsapp_community_url = @$l["fields"]["Whatsapp Community URL"]; + $list->telegram_community_url = @$l["fields"]["Telegram Community URL"]; + $list->discord_url = @$l["fields"]["Discord URL"]; + $list->shutdown_reason = @$l["fields"]["If shutdown,what happened?"]; $list->postmortem = @$l["fields"]["Postmortem"]; $list->host_organization_url = @$l["fields"]["Host organization URL"]; diff --git a/database/migrations/2024_11_29_185200_add_resource_fields_to_listings.php b/database/migrations/2024_11_29_185200_add_resource_fields_to_listings.php new file mode 100644 index 0000000..2af3b3c --- /dev/null +++ b/database/migrations/2024_11_29_185200_add_resource_fields_to_listings.php @@ -0,0 +1,38 @@ +string('mastodon')->after('blog_url')->nullable(); + $table->string('rss')->after('blog_url')->nullable(); + $table->string('bluesky_url')->after('blog_url')->nullable(); + $table->string('threads')->after('blog_url')->nullable(); + $table->string('whatsapp_community_url')->after('blog_url')->nullable(); + $table->string('telegram_community_url')->after('blog_url')->nullable(); + $table->string('discord_url')->after('blog_url')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('listings', function (Blueprint $table) { + // + }); + } +}; diff --git a/resources/views/projects/single.blade.php b/resources/views/projects/single.blade.php index ab85bc5..f7c2506 100644 --- a/resources/views/projects/single.blade.php +++ b/resources/views/projects/single.blade.php @@ -433,6 +433,33 @@ @if(!empty(@$project->blog_url))