@@ -1435,7 +1435,7 @@ public function testCreateTableWithVirtualAsColumn()
14351435 $ statements = $ blueprint ->toSql ();
14361436
14371437 $ this ->assertCount (1 , $ statements );
1438- $ this ->assertSame ("create table `users` (`my_json_column` varchar(255) not null, `my_other_column` varchar(255) as (json_unquote(json_extract( `my_json_column`, '$. \"some_attribute \"') ))) " , $ statements [0 ]);
1438+ $ this ->assertSame ("create table `users` (`my_json_column` varchar(255) not null, `my_other_column` varchar(255) as (json_value( `my_json_column`, '$. \"some_attribute \"'))) " , $ statements [0 ]);
14391439
14401440 $ conn = $ this ->getConnection ();
14411441 $ conn ->shouldReceive ('getConfig ' )->andReturn (null );
@@ -1448,7 +1448,7 @@ public function testCreateTableWithVirtualAsColumn()
14481448 $ statements = $ blueprint ->toSql ();
14491449
14501450 $ this ->assertCount (1 , $ statements );
1451- $ this ->assertSame ("create table `users` (`my_json_column` varchar(255) not null, `my_other_column` varchar(255) as (json_unquote(json_extract( `my_json_column`, '$. \"some_attribute \". \"nested \"') ))) " , $ statements [0 ]);
1451+ $ this ->assertSame ("create table `users` (`my_json_column` varchar(255) not null, `my_other_column` varchar(255) as (json_value( `my_json_column`, '$. \"some_attribute \". \"nested \"'))) " , $ statements [0 ]);
14521452 }
14531453
14541454 public function testCreateTableWithVirtualAsColumnWhenJsonColumnHasArrayKey ()
@@ -1463,7 +1463,7 @@ public function testCreateTableWithVirtualAsColumnWhenJsonColumnHasArrayKey()
14631463 $ statements = $ blueprint ->toSql ();
14641464
14651465 $ this ->assertCount (1 , $ statements );
1466- $ this ->assertSame ("create table `users` (`my_json_column` varchar(255) as (json_unquote(json_extract( `my_json_column`, '$. \"foo \"[0][1]') ))) " , $ statements [0 ]);
1466+ $ this ->assertSame ("create table `users` (`my_json_column` varchar(255) as (json_value( `my_json_column`, '$. \"foo \"[0][1]'))) " , $ statements [0 ]);
14671467 }
14681468
14691469 public function testCreateTableWithStoredAsColumn ()
@@ -1494,7 +1494,7 @@ public function testCreateTableWithStoredAsColumn()
14941494 $ statements = $ blueprint ->toSql ();
14951495
14961496 $ this ->assertCount (1 , $ statements );
1497- $ this ->assertSame ("create table `users` (`my_json_column` varchar(255) not null, `my_other_column` varchar(255) as (json_unquote(json_extract( `my_json_column`, '$. \"some_attribute \"') )) stored) " , $ statements [0 ]);
1497+ $ this ->assertSame ("create table `users` (`my_json_column` varchar(255) not null, `my_other_column` varchar(255) as (json_value( `my_json_column`, '$. \"some_attribute \"')) stored) " , $ statements [0 ]);
14981498
14991499 $ conn = $ this ->getConnection ();
15001500 $ conn ->shouldReceive ('getConfig ' )->andReturn (null );
@@ -1507,7 +1507,7 @@ public function testCreateTableWithStoredAsColumn()
15071507 $ statements = $ blueprint ->toSql ();
15081508
15091509 $ this ->assertCount (1 , $ statements );
1510- $ this ->assertSame ("create table `users` (`my_json_column` varchar(255) not null, `my_other_column` varchar(255) as (json_unquote(json_extract( `my_json_column`, '$. \"some_attribute \". \"nested \"') )) stored) " , $ statements [0 ]);
1510+ $ this ->assertSame ("create table `users` (`my_json_column` varchar(255) not null, `my_other_column` varchar(255) as (json_value( `my_json_column`, '$. \"some_attribute \". \"nested \"')) stored) " , $ statements [0 ]);
15111511 }
15121512
15131513 public function testDropDatabaseIfExists ()
0 commit comments