Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 55c5aa3

Browse files
authored
Added unique method to objectguid column
1 parent 4d1990b commit 55c5aa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/upgrading.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ If you're starting from scratch, simply add the `objectguid` column (or whicheve
9595
```php
9696
Schema::create('users', function (Blueprint $table) {
9797
$table->increments('id');
98-
$table->string('objectguid')->nullable(); // Added here.
98+
$table->string('objectguid')->unique()->nullable(); // Added here.
9999
$table->string('name');
100100
$table->string('email')->unique();
101101
$table->timestamp('email_verified_at')->nullable();
@@ -111,7 +111,7 @@ Ex. `php artisan migration:make add_objectguid_column`
111111

112112
```php
113113
Schema::table('users', function (Blueprint $table) {
114-
$table->string('objectguid')->nullable()->after('id');
114+
$table->string('objectguid')->unique()->nullable()->after('id');
115115
});
116116
```
117117

0 commit comments

Comments
 (0)