Skip to content

A self-hosted media server and file management system

feat: add file_count to series

aminnausinbc2cb0690a4d
diff --git a/database/migrations/2026_02_01_221003_add_file_count_to_series.php b/database/migrations/2026_02_01_221003_add_file_count_to_series.php
new file mode 100644
index 00000000..d9780ca6
--- /dev/null
+++ b/database/migrations/2026_02_01_221003_add_file_count_to_series.php
@@ -0,0 +1,25 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+return new class extends Migration {
+ /**
+ * Run the migrations.
+ */
+ public function up(): void {
+ Schema::table('series', function (Blueprint $table) {
+ $table->unsignedInteger('file_count')->default(0);
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ */
+ public function down(): void {
+ Schema::table('series', function (Blueprint $table) {
+ $table->dropColumn('file_count');
+ });
+ }
+};