Skip to content

Commit 4faccee

Browse files
committed
Add example migration file
1 parent d1f1a04 commit 4faccee

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

resources/stubs/install/Con_database/migrations/.gitkeep

Whitespace-only changes.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
@php
2+
echo '<?php'
3+
@endphp
4+
5+
use Illuminate\Database\Migrations\Migration;
6+
use Illuminate\Database\Schema\Blueprint;
7+
use Illuminate\Support\Facades\Schema;
8+
9+
return new class extends Migration
10+
{
11+
/**
12+
* Run the migrations.
13+
*/
14+
public function up(): void
15+
{
16+
Schema::create('examples', function (Blueprint $table) {
17+
$table->id();
18+
19+
// ...
20+
21+
$table->timestamps();
22+
});
23+
}
24+
25+
/**
26+
* Reverse the migrations.
27+
*/
28+
public function down(): void
29+
{
30+
Schema::dropIfExists('examples');
31+
}
32+
};

0 commit comments

Comments
 (0)