Skip to content

Commit b35d1d1

Browse files
committed
Add test migration file
1 parent 7232bba commit b35d1d1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Longman\TelegramBot\Database\Migration;
6+
7+
class CreateUsersTable extends Migration
8+
{
9+
public function up(): void
10+
{
11+
$this->getSchemaBuilder()->create('users', function (Blueprint $table) {
12+
$table->bigIncrements('id');
13+
$table->string('name');
14+
$table->string('email')->unique();
15+
$table->timestamp('email_verified_at')->nullable();
16+
$table->string('password');
17+
$table->timestamps();
18+
});
19+
}
20+
21+
public function down(): void
22+
{
23+
$this->getSchemaBuilder()->dropIfExists('users');
24+
}
25+
}

0 commit comments

Comments
 (0)