We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9956e88 commit 4458266Copy full SHA for 4458266
1 file changed
database/migrations/2026_01_08_091559_tou_version.php
@@ -0,0 +1,24 @@
1
+<?php
2
+
3
+use Illuminate\Database\Migrations\Migration;
4
+use Illuminate\Database\Schema\Blueprint;
5
+use Illuminate\Support\Facades\Schema;
6
7
+return new class extends Migration {
8
+ /**
9
+ * Run the migrations.
10
+ */
11
+ public function up(): void {
12
+ Schema::table('tou_versions', function (Blueprint $table) {
13
+ $table->dropColumn('id');
14
+ $table->string('version', 10)->primary()->change();
15
+ });
16
+ }
17
18
19
+ * Reverse the migrations.
20
21
+ public function down(): void {
22
+ Schema::dropIfExists('tou_versions');
23
24
+};
0 commit comments