Skip to content
Open

Big int #1412

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions templates/cli/lib/commands/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ const AttributeSchema = z
"mediumtext",
"longtext",
"integer",
"bigint",
"double",
"boolean",
"datetime",
Expand Down Expand Up @@ -283,6 +284,7 @@ const ColumnSchema = z
"mediumtext",
"longtext",
"integer",
"bigint",
"double",
"boolean",
"datetime",
Expand Down
21 changes: 21 additions & 0 deletions templates/cli/lib/commands/utils/attributes.ts
Comment thread
abnegate marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,17 @@ export class Attributes {
xdefault: attribute.default,
array: attribute.array,
});
case "bigint":
return databasesService.createBigIntAttribute({
databaseId,
collectionId,
key: attribute.key,
required: attribute.required,
min: attribute.min,
max: attribute.max,
xdefault: attribute.default,
array: attribute.array,
});
case "double":
return databasesService.createFloatAttribute({
databaseId,
Expand Down Expand Up @@ -469,6 +480,16 @@ export class Attributes {
max: attribute.max,
xdefault: attribute.default,
});
case "bigint":
return databasesService.updateBigIntAttribute({
databaseId,
collectionId,
key: attribute.key,
required: attribute.required,
min: attribute.min,
max: attribute.max,
xdefault: attribute.default,
});
case "double":
return databasesService.updateFloatAttribute({
databaseId,
Expand Down
Loading