hypothetical/database/migrations/2015_12_17_232249_create_subscription_table.php

30 lines
646 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.
*/
2023-03-13 17:33:19 -04:00
public function up(): void
{
Schema::create('subscriptions', function(Blueprint $table) {
$table->bigIncrements('id');
$table->string('name')->nullable();
$table->string('email')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
2023-03-13 17:33:19 -04:00
public function down(): void
{
Schema::drop('subscriptions');
}
2022-05-23 21:01:33 -04:00
};