hypothetical/database/migrations/2015_12_17_232249_add_subscription_table.php

34 lines
688 B
PHP
Raw Normal View History

<?php
2016-08-19 16:38:49 -04:00
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
2022-05-23 21:01:33 -04:00
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('subscriptions', function(Blueprint $table) {
$table->bigIncrements('id');
$table->string('name')->nullable();
$table->string('email')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('subscriptions');
}
2022-05-23 21:01:33 -04:00
};