diff --git a/migrations/1695476070385-UpdateMultisigSessionEntity.ts b/migrations/1695476070385-UpdateMultisigSessionEntity.ts index e6abd3f..e183f8c 100644 --- a/migrations/1695476070385-UpdateMultisigSessionEntity.ts +++ b/migrations/1695476070385-UpdateMultisigSessionEntity.ts @@ -11,14 +11,6 @@ export class UpdateMultisigSessionEntity1695476070385 { public async up(queryRunner: QueryRunner): Promise { // Adding new columns - await queryRunner.addColumn( - 'multisig_session', - new TableColumn({ - name: 'messageHash', - type: 'varchar', - isNullable: false, - }), - ); await queryRunner.addColumn( 'multisig_session', new TableColumn({ @@ -36,13 +28,6 @@ export class UpdateMultisigSessionEntity1695476070385 ); // Creating indices for messageHash and safeMessageHash - await queryRunner.createIndex( - 'multisig_session', - new TableIndex({ - name: 'IDX_MULTISIG_MESSAGE_HASH', - columnNames: ['messageHash'], - }), - ); await queryRunner.createIndex( 'multisig_session', new TableIndex({ @@ -54,10 +39,6 @@ export class UpdateMultisigSessionEntity1695476070385 public async down(queryRunner: QueryRunner): Promise { // Dropping indices for messageHash and safeMessageHash - await queryRunner.dropIndex( - 'multisig_session', - 'IDX_MULTISIG_MESSAGE_HASH', - ); await queryRunner.dropIndex( 'multisig_session', 'IDX_MULTISIG_SAFE_MESSAGE_HASH', @@ -71,7 +52,6 @@ export class UpdateMultisigSessionEntity1695476070385 ); // Dropping the added columns - await queryRunner.dropColumn('multisig_session', 'isSuccessful'); - await queryRunner.dropColumn('multisig_session', 'messageHash'); + await queryRunner.dropColumn('multisig_session', 'status'); } } diff --git a/src/entities/multisigSession.ts b/src/entities/multisigSession.ts index f2c906e..eac0fe3 100644 --- a/src/entities/multisigSession.ts +++ b/src/entities/multisigSession.ts @@ -29,10 +29,6 @@ export class MultisigSession extends BaseEntity { @Column({ nullable: false }) safeMessageHash: string; - @Index() - @Column({ nullable: false }) - messageHash: string; - @Index() @Column({ nullable: false }) safeTransactionHash: string;