fix: 🚑️ Added DB-Migration -> renaming paypal_products table to credit_products
This commit is contained in:
parent
2db5a580ce
commit
0a75de9689
1 changed files with 28 additions and 0 deletions
|
@ -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');
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue