Skip to content

Commit 369cd0e

Browse files
Fix wrong column type
close #20
1 parent 03d78ef commit 369cd0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/migrations/2020_03_04_214540_add_user_id_to_urls.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class AddUserIdToUrls extends Migration
1414
public function up()
1515
{
1616
Schema::table('shorturl_urls', function (Blueprint $table) {
17-
$table->integer('user_id')->nullable()->unsigned()->after('expires_at');
17+
$table->unsignedBigInteger('user_id')->nullable()->unsigned()->after('expires_at');
1818
$table->foreign('user_id')->references('id')->on('users');
1919
});
2020
}

0 commit comments

Comments
 (0)