Fix some missed column types
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 })
|