Skip to content

Commit 4458266

Browse files
committed
Update ToU version migration
1 parent 9956e88 commit 4458266

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)