hypothetical/database/migrations/2015_12_14_200624_create_contact_table.php

31 lines
683 B
PHP
Raw Normal View History

2016-01-03 19:08:53 -05:00
<?php
2016-08-19 16:38:49 -04:00
use Illuminate\Support\Facades\Schema;
2016-01-03 19:08:53 -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-03 19:08:53 -05:00
{
/**
* Run the migrations.
*/
2023-03-13 17:33:19 -04:00
public function up(): void
2016-01-03 19:08:53 -05:00
{
Schema::create('contact', function(Blueprint $table) {
$table->bigIncrements('id');
$table->string('name')->nullable();
$table->string('email')->nullable();
$table->text('message')->nullable();
2016-01-03 19:08:53 -05:00
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
2023-03-13 17:33:19 -04:00
public function down(): void
2016-01-03 19:08:53 -05:00
{
Schema::drop('contact');
}
2022-05-23 21:01:33 -04:00
};