summaryrefslogtreecommitdiff
path: root/workbench/database/migrations
diff options
context:
space:
mode:
authorSam Light <samlight1994@gmail.com>2025-01-18 20:17:47 +0000
committerSam Light <samlight1994@gmail.com>2025-01-18 20:17:47 +0000
commiteb5c48b58d72d04abb093fceb32db842ec7ab5fb (patch)
tree4cf40914cba238a46dbb99c36d83e2dfb4efc3e0 /workbench/database/migrations
parent7ae6611fbcee86e6dae9890c27da329fa036717f (diff)
Setup testing
Diffstat (limited to 'workbench/database/migrations')
-rw-r--r--workbench/database/migrations/2025_01_18_201725_create_products_table.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/workbench/database/migrations/2025_01_18_201725_create_products_table.php b/workbench/database/migrations/2025_01_18_201725_create_products_table.php
new file mode 100644
index 0000000..7c23f58
--- /dev/null
+++ b/workbench/database/migrations/2025_01_18_201725_create_products_table.php
@@ -0,0 +1,27 @@
+<?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('products', function (Blueprint $table) {
+ $table->id();
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ */
+ public function down(): void
+ {
+ Schema::dropIfExists('products');
+ }
+};