summary refs log tree commit diff
path: root/src/database/entities
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-07-03 15:39:09 +0200
committerRory& <root@rory.gay>2026-07-03 15:39:09 +0200
commit5289d79eb7df5d4c06b72e7581eca2bf8d56e8d2 (patch)
tree5c718fa33559126c2218aa3c1b2961606ab40109 /src/database/entities
parentFix instance ban index names (diff)
downloadserver-ts-5289d79eb7df5d4c06b72e7581eca2bf8d56e8d2.tar.xz
Fix some missed column types
Diffstat (limited to 'src/database/entities')
-rw-r--r--src/database/entities/ApplicationCommand.ts8
-rw-r--r--src/database/entities/Categories.ts2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/database/entities/ApplicationCommand.ts b/src/database/entities/ApplicationCommand.ts

index 8fc7ef9fa..01ff5a146 100644 --- a/src/database/entities/ApplicationCommand.ts +++ b/src/database/entities/ApplicationCommand.ts
@@ -35,10 +35,10 @@ export class ApplicationCommand extends BaseClass { @Column({ default: ApplicationCommandType.CHAT_INPUT }) type?: ApplicationCommandType; - @Column() + @Column({ type: "int8" }) application_id: Snowflake; - @Column({ nullable: true }) + @Column({ type: "int8", nullable: true }) guild_id?: Snowflake; @Column() @@ -80,8 +80,8 @@ export class ApplicationCommand extends BaseClass { @Column({ nullable: true, type: "jsonb" }) contexts?: InteractionContextType[]; - @Column({ default: 0 }) - version: Snowflake; + @Column({ type: "int8", default: "0::bigint" }) + version: Snowflake; // Is this really a snowflake though? "An autoincrementing version identifier updated during substantial record changes" @Column({ default: 0 }) handler?: ApplicationCommandHandlerType; diff --git a/src/database/entities/Categories.ts b/src/database/entities/Categories.ts
index 8c7ca78c9..3a7e133ff 100644 --- a/src/database/entities/Categories.ts +++ b/src/database/entities/Categories.ts
@@ -39,7 +39,7 @@ import { BaseClassWithoutId } from "./BaseClass"; export class Categories extends BaseClassWithoutId { // Not using snowflake - @PrimaryColumn() + @PrimaryColumn({ type: "int4" }) id: number; @Column({ nullable: true })