@@ -57,7 +57,7 @@ public function testBasicCreateTable()
57
57
$ statements = $ blueprint ->toSql ($ conn , $ this ->getGrammar ());
58
58
59
59
$ this ->assertCount (1 , $ statements );
60
- $ this ->assertSame ('create table `users` (`id` char(36) not null, primary key (`id`)) ' , $ statements [0 ]);
60
+ $ this ->assertSame ('create table `users` (`id` uuid not null, primary key (`id`)) ' , $ statements [0 ]);
61
61
}
62
62
63
63
public function testAutoIncrementStartingValue ()
@@ -1090,7 +1090,7 @@ public function testAddingUuid()
1090
1090
$ statements = $ blueprint ->toSql ($ this ->getConnection (), $ this ->getGrammar ());
1091
1091
1092
1092
$ this ->assertCount (1 , $ statements );
1093
- $ this ->assertSame ('alter table `users` add `foo` char(36) not null ' , $ statements [0 ]);
1093
+ $ this ->assertSame ('alter table `users` add `foo` uuid not null ' , $ statements [0 ]);
1094
1094
}
1095
1095
1096
1096
public function testAddingUuidDefaultsColumnName ()
@@ -1100,7 +1100,7 @@ public function testAddingUuidDefaultsColumnName()
1100
1100
$ statements = $ blueprint ->toSql ($ this ->getConnection (), $ this ->getGrammar ());
1101
1101
1102
1102
$ this ->assertCount (1 , $ statements );
1103
- $ this ->assertSame ('alter table `users` add `uuid` char(36) not null ' , $ statements [0 ]);
1103
+ $ this ->assertSame ('alter table `users` add `uuid` uuid not null ' , $ statements [0 ]);
1104
1104
}
1105
1105
1106
1106
public function testAddingForeignUuid ()
@@ -1116,7 +1116,7 @@ public function testAddingForeignUuid()
1116
1116
1117
1117
$ this ->assertInstanceOf (ForeignIdColumnDefinition::class, $ foreignUuid );
1118
1118
$ this ->assertSame ([
1119
- 'alter table `users` add `foo` char(36) not null, add `company_id` char(36) not null, add `laravel_idea_id` char(36) not null, add `team_id` char(36) not null, add `team_column_id` char(36) not null ' ,
1119
+ 'alter table `users` add `foo` uuid not null, add `company_id` uuid not null, add `laravel_idea_id` uuid not null, add `team_id` uuid not null, add `team_column_id` uuid not null ' ,
1120
1120
'alter table `users` add constraint `users_company_id_foreign` foreign key (`company_id`) references `companies` (`id`) ' ,
1121
1121
'alter table `users` add constraint `users_laravel_idea_id_foreign` foreign key (`laravel_idea_id`) references `laravel_ideas` (`id`) ' ,
1122
1122
'alter table `users` add constraint `users_team_id_foreign` foreign key (`team_id`) references `teams` (`id`) ' ,
0 commit comments