Skip to content

Commit

Permalink
feat(migrations): ✨ add migration for brands table
Browse files Browse the repository at this point in the history
  • Loading branch information
samiulislamsharan committed Aug 27, 2024
1 parent ffa028b commit 03385bc
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions database/migrations/2024_08_27_091720_create_brands_table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('brands', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('slug');

$table->timestamps();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('brands');
}
};

0 comments on commit 03385bc

Please sign in to comment.