mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-19 16:01:34 +02:00
Fixes for schema
This commit is contained in:
parent
fe2ad3edd8
commit
526a26868a
@ -476,10 +476,10 @@ return new class extends Migration {
|
||||
$t->string('custom_value4')->nullable();
|
||||
$t->datetime('next_send_date')->nullable();
|
||||
|
||||
$t->string('custom_surcharge1')->nullable();
|
||||
$t->string('custom_surcharge2')->nullable();
|
||||
$t->string('custom_surcharge3')->nullable();
|
||||
$t->string('custom_surcharge4')->nullable();
|
||||
$t->decimal('custom_surcharge1', 20, 6)->nullable();
|
||||
$t->decimal('custom_surcharge2', 20, 6)->nullable();
|
||||
$t->decimal('custom_surcharge3', 20, 6)->nullable();
|
||||
$t->decimal('custom_surcharge4', 20, 6)->nullable();
|
||||
$t->boolean('custom_surcharge_tax1')->default(false);
|
||||
$t->boolean('custom_surcharge_tax2')->default(false);
|
||||
$t->boolean('custom_surcharge_tax3')->default(false);
|
||||
@ -554,10 +554,10 @@ return new class extends Migration {
|
||||
$t->string('custom_value4')->nullable();
|
||||
$t->datetime('next_send_date')->nullable();
|
||||
|
||||
$t->string('custom_surcharge1')->nullable();
|
||||
$t->string('custom_surcharge2')->nullable();
|
||||
$t->string('custom_surcharge3')->nullable();
|
||||
$t->string('custom_surcharge4')->nullable();
|
||||
$t->decimal('custom_surcharge1', 20, 6)->nullable();
|
||||
$t->decimal('custom_surcharge2', 20, 6)->nullable();
|
||||
$t->decimal('custom_surcharge3', 20, 6)->nullable();
|
||||
$t->decimal('custom_surcharge4', 20, 6)->nullable();
|
||||
$t->boolean('custom_surcharge_tax1')->default(false);
|
||||
$t->boolean('custom_surcharge_tax2')->default(false);
|
||||
$t->boolean('custom_surcharge_tax3')->default(false);
|
||||
@ -791,10 +791,10 @@ return new class extends Migration {
|
||||
$t->string('custom_value3')->nullable();
|
||||
$t->string('custom_value4')->nullable();
|
||||
|
||||
$t->string('custom_surcharge1')->nullable();
|
||||
$t->string('custom_surcharge2')->nullable();
|
||||
$t->string('custom_surcharge3')->nullable();
|
||||
$t->string('custom_surcharge4')->nullable();
|
||||
$t->decimal('custom_surcharge1', 20, 6)->nullable();
|
||||
$t->decimal('custom_surcharge2', 20, 6)->nullable();
|
||||
$t->decimal('custom_surcharge3', 20, 6)->nullable();
|
||||
$t->decimal('custom_surcharge4', 20, 6)->nullable();
|
||||
$t->boolean('custom_surcharge_tax1')->default(false);
|
||||
$t->boolean('custom_surcharge_tax2')->default(false);
|
||||
$t->boolean('custom_surcharge_tax3')->default(false);
|
||||
|
@ -59,10 +59,10 @@ return new class extends Migration {
|
||||
$table->boolean('auto_bill_enabled')->default(0);
|
||||
$table->unsignedInteger('design_id')->nullable();
|
||||
$table->boolean('uses_inclusive_taxes')->default(0);
|
||||
$table->string('custom_surcharge1')->nullable();
|
||||
$table->string('custom_surcharge2')->nullable();
|
||||
$table->string('custom_surcharge3')->nullable();
|
||||
$table->string('custom_surcharge4')->nullable();
|
||||
$table->decimal('custom_surcharge1', 20, 6)->nullable();
|
||||
$table->decimal('custom_surcharge2', 20, 6)->nullable();
|
||||
$table->decimal('custom_surcharge3', 20, 6)->nullable();
|
||||
$table->decimal('custom_surcharge4', 20, 6)->nullable();
|
||||
$table->boolean('custom_surcharge_tax1')->default(false);
|
||||
$table->boolean('custom_surcharge_tax2')->default(false);
|
||||
$table->boolean('custom_surcharge_tax3')->default(false);
|
||||
|
@ -12,33 +12,33 @@ return new class extends Migration {
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('invoices', function (Blueprint $table) {
|
||||
$table->decimal('custom_surcharge1', 20, 6)->change();
|
||||
$table->decimal('custom_surcharge2', 20, 6)->change();
|
||||
$table->decimal('custom_surcharge3', 20, 6)->change();
|
||||
$table->decimal('custom_surcharge4', 20, 6)->change();
|
||||
});
|
||||
// Schema::table('invoices', function (Blueprint $table) {
|
||||
// $table->decimal('custom_surcharge1', 20, 6)->change();
|
||||
// $table->decimal('custom_surcharge2', 20, 6)->change();
|
||||
// $table->decimal('custom_surcharge3', 20, 6)->change();
|
||||
// $table->decimal('custom_surcharge4', 20, 6)->change();
|
||||
// });
|
||||
|
||||
Schema::table('recurring_invoices', function (Blueprint $table) {
|
||||
$table->decimal('custom_surcharge1', 20, 6)->change();
|
||||
$table->decimal('custom_surcharge2', 20, 6)->change();
|
||||
$table->decimal('custom_surcharge3', 20, 6)->change();
|
||||
$table->decimal('custom_surcharge4', 20, 6)->change();
|
||||
});
|
||||
// Schema::table('recurring_invoices', function (Blueprint $table) {
|
||||
// $table->decimal('custom_surcharge1', 20, 6)->change();
|
||||
// $table->decimal('custom_surcharge2', 20, 6)->change();
|
||||
// $table->decimal('custom_surcharge3', 20, 6)->change();
|
||||
// $table->decimal('custom_surcharge4', 20, 6)->change();
|
||||
// });
|
||||
|
||||
Schema::table('quotes', function (Blueprint $table) {
|
||||
$table->decimal('custom_surcharge1', 20, 6)->change();
|
||||
$table->decimal('custom_surcharge2', 20, 6)->change();
|
||||
$table->decimal('custom_surcharge3', 20, 6)->change();
|
||||
$table->decimal('custom_surcharge4', 20, 6)->change();
|
||||
});
|
||||
// Schema::table('quotes', function (Blueprint $table) {
|
||||
// $table->decimal('custom_surcharge1', 20, 6)->change();
|
||||
// $table->decimal('custom_surcharge2', 20, 6)->change();
|
||||
// $table->decimal('custom_surcharge3', 20, 6)->change();
|
||||
// $table->decimal('custom_surcharge4', 20, 6)->change();
|
||||
// });
|
||||
|
||||
Schema::table('credits', function (Blueprint $table) {
|
||||
$table->decimal('custom_surcharge1', 20, 6)->change();
|
||||
$table->decimal('custom_surcharge2', 20, 6)->change();
|
||||
$table->decimal('custom_surcharge3', 20, 6)->change();
|
||||
$table->decimal('custom_surcharge4', 20, 6)->change();
|
||||
});
|
||||
// Schema::table('credits', function (Blueprint $table) {
|
||||
// $table->decimal('custom_surcharge1', 20, 6)->change();
|
||||
// $table->decimal('custom_surcharge2', 20, 6)->change();
|
||||
// $table->decimal('custom_surcharge3', 20, 6)->change();
|
||||
// $table->decimal('custom_surcharge4', 20, 6)->change();
|
||||
// });
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user