Make sorting of invoice items reliable.
Some checks failed
Build project image / Build-and-release-image (push) Failing after 3m1s

This commit is contained in:
2025-08-02 12:12:57 +02:00
parent e1f579c7fd
commit 0a4089fe14
6 changed files with 33 additions and 2 deletions

View File

@@ -0,0 +1,28 @@
<?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('invoiceitems', function (Blueprint $table) {
$table->integer('sort')->default(0)->after('invoice_id');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('invoiceitems', function (Blueprint $table) {
$table->dropColumn('sort');
});
}
};