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