unsignedInteger('monthly_fee_cents')->nullable()->after('quoted_amount_cents'); }); Schema::table('billing_exports', function (Blueprint $table) { $table->char('period', 7)->nullable()->after('status'); }); Schema::table('billing_invoice_jobs', function (Blueprint $table) { $table->boolean('own_invoice')->default(false)->after('customer_reference'); }); Schema::table('billing_lines', function (Blueprint $table) { $table->char('period', 7)->nullable()->after('expense_id'); $table->index(['customer_job_id', 'kind', 'period']); }); } public function down(): void { Schema::table('billing_lines', function (Blueprint $table) { $table->dropIndex(['customer_job_id', 'kind', 'period']); $table->dropColumn('period'); }); Schema::table('billing_invoice_jobs', function (Blueprint $table) { $table->dropColumn('own_invoice'); }); Schema::table('billing_exports', function (Blueprint $table) { $table->dropColumn('period'); }); Schema::table('customer_jobs', function (Blueprint $table) { $table->dropColumn('monthly_fee_cents'); }); } };