Skip to content

Commit

Permalink
PHP 8.2 strpos dep in mysql schema
Browse files Browse the repository at this point in the history
  • Loading branch information
thomassb committed Sep 29, 2023
1 parent 059b67b commit a24ebd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/db/schema/mysql/CMysqlSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@ protected function createColumn($column)
$c->name=$column['Field'];
$c->rawName=$this->quoteColumnName($c->name);
$c->allowNull=$column['Null']==='YES';
$c->isPrimaryKey=strpos($column['Key'],'PRI')!==false;
$c->isPrimaryKey=strpos($column['Key']??'','PRI')!==false;
$c->isForeignKey=false;
$c->init($column['Type'],$column['Default']);
$c->autoIncrement=strpos(strtolower($column['Extra']),'auto_increment')!==false;
$c->autoIncrement=strpos(strtolower($column['Extra']??''),'auto_increment')!==false;
if(isset($column['Comment']))
$c->comment=$column['Comment'];

Expand Down

0 comments on commit a24ebd5

Please sign in to comment.