We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7232bba commit b35d1d1Copy full SHA for b35d1d1
migrations/2014_10_12_000000_create_users_table.php
@@ -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