File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -49,19 +49,19 @@ func Test_UseLongTextInSomeColumnsAndFixBugs(t *testing.T) {
4949
5050 assert .NoError (t , UseLongTextInSomeColumnsAndFixBugs (x ))
5151
52- table , err := x .TableInfo ("review_state" )
52+ table , err := x .TableInfo (new ( ReviewState ) )
5353 require .NoError (t , err )
5454 column := table .GetColumn ("updated_files" )
5555 require .NotNil (t , column )
5656 assert .Equal (t , "LONGTEXT" , column .SQLType .Name )
5757
58- table , err = x .TableInfo ("package_property" )
58+ table , err = x .TableInfo (new ( PackageProperty ) )
5959 require .NoError (t , err )
6060 column = table .GetColumn ("value" )
6161 require .NotNil (t , column )
6262 assert .Equal (t , "LONGTEXT" , column .SQLType .Name )
6363
64- table , err = x .TableInfo ("notice" )
64+ table , err = x .TableInfo (new ( Notice ) )
6565 require .NoError (t , err )
6666 column = table .GetColumn ("description" )
6767 require .NotNil (t , column )
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ func Test_ExtendCommentTreePathLength(t *testing.T) {
2828
2929 require .NoError (t , ExtendCommentTreePathLength (x ))
3030
31- table , err := x .TableInfo ("comment" )
31+ table , err := x .TableInfo (new ( Comment ) )
3232 require .NoError (t , err )
3333
3434 column := table .GetColumn ("tree_path" )
You can’t perform that action at this time.
0 commit comments