Skip to content

Commit

Permalink
fix migration file for multisigSession
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosQ96 committed Sep 23, 2023
1 parent ba439c5 commit 0ec303c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
22 changes: 1 addition & 21 deletions migrations/1695476070385-UpdateMultisigSessionEntity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@ export class UpdateMultisigSessionEntity1695476070385
{
public async up(queryRunner: QueryRunner): Promise<void> {
// Adding new columns
await queryRunner.addColumn(
'multisig_session',
new TableColumn({
name: 'messageHash',
type: 'varchar',
isNullable: false,
}),
);
await queryRunner.addColumn(
'multisig_session',
new TableColumn({
Expand All @@ -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({
Expand All @@ -54,10 +39,6 @@ export class UpdateMultisigSessionEntity1695476070385

public async down(queryRunner: QueryRunner): Promise<void> {
// 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',
Expand All @@ -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');
}
}
4 changes: 0 additions & 4 deletions src/entities/multisigSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0ec303c

Please sign in to comment.