diff --git a/database/migrations/2023_05_13_123119_remove_status_entities_from_statuses_table.php b/database/migrations/2023_05_13_123119_remove_status_entities_from_statuses_table.php new file mode 100644 index 000000000..9a7fb4734 --- /dev/null +++ b/database/migrations/2023_05_13_123119_remove_status_entities_from_statuses_table.php @@ -0,0 +1,34 @@ +lazyById(200, 'id') as $status) { + if(!in_array($status->scope, ['public', 'unlisted', 'private'])) { + continue; + } + if(str_starts_with($status->entities, '{"urls')) { + $status->entities = null; + $status->save(); + } else { + continue; + } + } + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + } +};