Skip to content

Commit

Permalink
refactor: switch to real data-type
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Dec 11, 2024
1 parent 860d5dd commit 66894c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1493,7 +1493,7 @@ describe("Entity builder", () => {
rate: {
reference: "scalar",
type: "number",
columnType: "numeric",
columnType: "real",
name: "rate",
fieldName: "rate",
serializer: Number,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const COLUMN_TYPES: {
dateTime: "timestamptz",
number: "integer",
bigNumber: "numeric",
float: "numeric",
float: "real",
serial: "number",
text: "text",
json: "jsonb",
Expand Down Expand Up @@ -284,7 +284,7 @@ export function defineProperty(
*/
if (field.dataType.name === "float") {
Property({
columnType: "numeric",
columnType: "real",
type: "number",
nullable: field.nullable,
fieldName: field.fieldName,
Expand Down

0 comments on commit 66894c7

Please sign in to comment.