Various fixes for DB seeding
This commit is contained in:
@@ -15,34 +15,6 @@ public function up()
|
||||
$table->integer('days')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
// Fügen Sie Standard-Zahlungsziele hinzu
|
||||
DB::table('payment_terms')->insert([
|
||||
[
|
||||
'name' => 'prepaid',
|
||||
'description' => 'Vorkasse',
|
||||
'is_fixed' => true,
|
||||
'days' => null,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
[
|
||||
'name' => 'onReceipt',
|
||||
'description' => 'Bei Rechnungserhalt',
|
||||
'is_fixed' => true,
|
||||
'days' => null,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
[
|
||||
'name' => 'daysAfterInvoice',
|
||||
'description' => 'Zahlungsziel in Tagen',
|
||||
'is_fixed' => false,
|
||||
'days' => 14,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
]
|
||||
]);
|
||||
}
|
||||
|
||||
public function down()
|
||||
|
||||
@@ -15,8 +15,6 @@ public function up(): void
|
||||
$table->id();
|
||||
$table->foreignId('user_id')->constrained()->nullOnDelete();
|
||||
$table->text('text');
|
||||
|
||||
// Polymorphische Beziehung
|
||||
$table->unsignedBigInteger('notable_id');
|
||||
$table->string('notable_type');
|
||||
|
||||
|
||||
@@ -15,14 +15,6 @@ public function up(): void
|
||||
$table->string('symbol', 10)->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
// Füge Standard-Einheiten hinzu
|
||||
DB::table('units')->insert([
|
||||
['name' => 'Stück', 'symbol' => 'Stk'],
|
||||
['name' => 'Stunden', 'symbol' => 'h'],
|
||||
['name' => 'Tage', 'symbol' => 'd'],
|
||||
['name' => 'pauschal', 'symbol' => 'p'],
|
||||
]);
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
|
||||
Reference in New Issue
Block a user