fix: 🚑️ removed old migration renaming (wrong one)

This commit is contained in:
IceToast 2022-01-20 09:31:28 +01:00
parent dd6db1bb0d
commit 5dc5b8a95a

View file

@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
class CreateCreditProductsTable extends Migration class CreatePaypalProductsTable extends Migration
{ {
/** /**
* Run the migrations. * Run the migrations.
@ -13,13 +13,13 @@ class CreateCreditProductsTable extends Migration
*/ */
public function up() public function up()
{ {
Schema::create('credit_products', function (Blueprint $table) { Schema::create('paypal_products', function (Blueprint $table) {
$table->uuid('id')->primary(); $table->uuid('id')->primary();
$table->string('type'); $table->string('type');
$table->decimal('price')->default(0); $table->decimal('price')->default(0);
$table->unsignedInteger('quantity'); $table->unsignedInteger('quantity');
$table->string('description'); $table->string('description');
$table->string('currency_code' , 3); $table->string('currency_code', 3);
$table->boolean('disabled')->default(true); $table->boolean('disabled')->default(true);
$table->timestamps(); $table->timestamps();
}); });
@ -32,6 +32,6 @@ class CreateCreditProductsTable extends Migration
*/ */
public function down() public function down()
{ {
Schema::dropIfExists('credit_products'); Schema::dropIfExists('paypal_products');
} }
} }