99use Yiisoft \Db \Exception \Exception ;
1010use Yiisoft \Db \Exception \InvalidArgumentException ;
1111use Yiisoft \Db \Exception \NotSupportedException ;
12+ use Yiisoft \Db \Expression \Expression ;
1213use Yiisoft \Db \Expression \ExpressionInterface ;
1314use Yiisoft \Db \Query \Query ;
1415use Yiisoft \Db \Query \QueryInterface ;
1516use Yiisoft \Db \Schema \Column \ColumnBuilder ;
17+ use Yiisoft \Db \Schema \Column \IntegerColumn ;
1618use Yiisoft \Db \Tests \AbstractQueryBuilderTest ;
1719use Yiisoft \Db \Tests \Provider \QueryBuilderProvider ;
1820use Yiisoft \Db \Tests \Support \Assert ;
@@ -102,7 +104,7 @@ public function testCreateTable(): void
102104 <<<SQL
103105 CREATE TABLE [[test]] (
104106 \t[[id]] integer PRIMARY KEY AUTOINCREMENT,
105- \t[[name]] varchar (255) NOT NULL,
107+ \t[[name]] string (255) NOT NULL,
106108 \t[[email]] varchar(255) NOT NULL,
107109 \t[[status]] integer NOT NULL,
108110 \t[[created_at]] datetime NOT NULL,
@@ -115,9 +117,9 @@ public function testCreateTable(): void
115117 'test ' ,
116118 [
117119 'id ' => 'pk ' ,
118- 'name ' => 'string(255) NOT NULL ' ,
120+ 'name ' => new Expression ( 'string(255) NOT NULL ' ) ,
119121 'email ' => ColumnBuilder::string ()->notNull (),
120- 'status ' => ' integer NOT NULL ' ,
122+ 'status ' => new IntegerColumn (notNull: true ) ,
121123 'created_at ' => 'datetime NOT NULL ' ,
122124 'UNIQUE test_email_unique (email) ' ,
123125 ],
0 commit comments