Browse Source

fix: 🚑️ Added DB-Migration -> renaming paypal_products table to credit_products

IceToast 3 years ago
parent
commit
0a75de9689

+ 28 - 0
database/migrations/2021_12_28_203515_rename_paypal_products_table.php

@@ -0,0 +1,28 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class RenamePaypalProductsTable extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::rename('paypal_products', 'credit_products');
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::rename('credit_products', 'paypal_products');
+    }
+}