Обновлены округления
Добавлены миграции
This commit is contained in:
miroman-afk
2023-08-15 12:19:34 +03:00
parent a7c1679d12
commit 229ab8667e
3 changed files with 37 additions and 11 deletions

View File

@@ -25,6 +25,18 @@ class UpdateItemCountAndItemPriceInOrderItemsToFloatV2 extends Migration
Schema::table('shift_online_deleted', function (Blueprint $table) {
$table->decimal('count', $precision = 16, $scale = 3)->nullable()->change();
});
Schema::table('exchange_items', function (Blueprint $table) {
$table->decimal('count', $precision = 16, $scale = 3)->nullable()->change();
});
Schema::table('exchange_items', function (Blueprint $table) {
$table->decimal('count_return', $precision = 16, $scale = 3)->nullable()->change();
});
Schema::table('exchange_items', function (Blueprint $table) {
$table->decimal('count_real', $precision = 16, $scale = 3)->nullable()->change();
});
Schema::table('exchange_deleted', function (Blueprint $table) {
$table->decimal('count', $precision = 16, $scale = 3)->nullable()->change();
});
}
/**
@@ -46,5 +58,17 @@ class UpdateItemCountAndItemPriceInOrderItemsToFloatV2 extends Migration
Schema::table('shift_online_deleted', function (Blueprint $table) {
$table->decimal('count', $precision = 16, $scale = 2)->nullable()->change();
});
Schema::table('exchange_items', function (Blueprint $table) {
$table->decimal('count', $precision = 16, $scale = 2)->nullable()->change();
});
Schema::table('exchange_items', function (Blueprint $table) {
$table->decimal('count_return', $precision = 16, $scale = 2)->nullable()->change();
});
Schema::table('exchange_items', function (Blueprint $table) {
$table->decimal('count_real', $precision = 16, $scale = 2)->nullable()->change();
});
Schema::table('exchange_deleted', function (Blueprint $table) {
$table->decimal('count', $precision = 16, $scale = 2)->nullable()->change();
});
}
}