浏览代码

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

IceToast 3 年之前
父节点
当前提交
0a75de9689
共有 1 个文件被更改,包括 28 次插入0 次删除
  1. 28 0
      database/migrations/2021_12_28_203515_rename_paypal_products_table.php

+ 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');
+    }
+}