Skip to content

Commit

Permalink
erge branch 'master' of github.com:phact-cmf/phact
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonOkulov committed Mar 12, 2019
2 parents 5502d98 + 1ebb6b0 commit 8c499e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Phact/Orm/Fields/DecimalField.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ public function dbPrepareValue($value)

public function mainSqlType()
{
return "DECIMAL({$this->precision}, {$this->scale})";
return "decimal({$this->precision}, {$this->scale})";
}

/**
* @return string
*/
public function getType()
{
return "DECIMAL";
return "decimal";
}

public function getColumnOptions()
Expand All @@ -69,4 +69,4 @@ public function getColumnOptions()
}
return $options;
}
}
}

0 comments on commit 8c499e6

Please sign in to comment.