Skip to content

Commit

Permalink
Merge pull request #9 from ProRezak/patch-2
Browse files Browse the repository at this point in the history
decimal uppercase fix
  • Loading branch information
AntonOkulov authored Feb 8, 2019
2 parents c361ac3 + d8359b7 commit 1ebb6b0
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 1ebb6b0

Please sign in to comment.