ldc-crm/database/migrations/2020_11_26_152638_create_customers.php
Jérémy Munsch 2e99623428 Normalize
- add phpcs
  - fix php standards
  - fix Laravel standards
  - normalize tables names
2021-03-01 06:57:45 +01:00

33 lines
691 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
// phpcs:ignore PSR1.Classes.ClassDeclaration.MissingNamespace
class CreateCustomers extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('customers', function (Blueprint $table) {
$table->id();
$table->string('email')->unique();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('customers');
}
}