fix copy-and-paste mistake

This commit is contained in:
Einhornimmond 2023-08-30 21:56:05 +02:00
parent 7b2d5245d7
commit 9e0333c9fe
2 changed files with 3 additions and 3 deletions

View File

@ -5,6 +5,6 @@ export class InvalidTransaction {
@PrimaryGeneratedColumn('increment', { unsigned: true, type: 'bigint' })
id: number
@Column({ name: 'iota_message_id', type: 'binary', length: 32, nullable: true })
iotaMessageId?: Buffer
@Column({ name: 'iota_message_id', type: 'binary', length: 32 })
iotaMessageId: Buffer
}

View File

@ -112,7 +112,7 @@ export async function upgrade(queryFn: (query: string, values?: any[]) => Promis
await queryFn(`
CREATE TABLE IF NOT EXISTS \`invalid_transactions\` (
\`id\` bigint unsigned NOT NULL AUTO_INCREMENT,
\`iota_message_id\` binary(32) DEFAULT NULL,
\`iota_message_id\` binary(32) NOT NULL,
PRIMARY KEY (\`id\`),
INDEX (\`iota_message_id\`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;`)