mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
41 lines
964 B
PHP
41 lines
964 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateCustomerColumns extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::table('users', function (Blueprint $table) {
|
|
$table->string('stripe_id')->nullable()->index();
|
|
$table->string('card_brand')->nullable();
|
|
$table->string('card_last_four', 4)->nullable();
|
|
$table->timestamp('trial_ends_at')->nullable();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::table('users', function (Blueprint $table) {
|
|
$table->dropColumn([
|
|
'stripe_id',
|
|
'card_brand',
|
|
'card_last_four',
|
|
'trial_ends_at',
|
|
]);
|
|
});
|
|
}
|
|
}
|