From 2c3db9da01467267ec2a63267d6eb755de44343a Mon Sep 17 00:00:00 2001 From: elweyn Date: Wed, 26 Oct 2022 12:04:07 +0200 Subject: [PATCH] Move updatedAt before deleted variables. --- .../0052-add_updated_at_to_contributions/Contribution.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/database/entity/0052-add_updated_at_to_contributions/Contribution.ts b/database/entity/0052-add_updated_at_to_contributions/Contribution.ts index fa61e9274..2242a753f 100644 --- a/database/entity/0052-add_updated_at_to_contributions/Contribution.ts +++ b/database/entity/0052-add_updated_at_to_contributions/Contribution.ts @@ -80,6 +80,9 @@ export class Contribution extends BaseEntity { @Column({ unsigned: true, nullable: true, name: 'transaction_id' }) transactionId: number + @Column({ nullable: true, name: 'updated_at' }) + updatedAt: Date + @DeleteDateColumn({ name: 'deleted_at' }) deletedAt: Date | null @@ -89,7 +92,4 @@ export class Contribution extends BaseEntity { @OneToMany(() => ContributionMessage, (message) => message.contribution) @JoinColumn({ name: 'contribution_id' }) messages?: ContributionMessage[] - - @Column({ nullable: true, name: 'updated_at' }) - updatedAt: Date }