• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

safe-global / safe-client-gateway / 11367733917

16 Oct 2024 02:24PM UTC coverage: 90.591% (-0.6%) from 91.148%
11367733917

Pull #1988

github

PooyaRaki
Refactor unit tests, initializes postgres database on module startup, reverts v1 migration configuration
Pull Request #1988: OrmMigrationAndLogger

2655 of 3258 branches covered (81.49%)

Branch coverage included in aggregate %.

89 of 160 new or added lines in 17 files covered. (55.63%)

8802 of 9389 relevant lines covered (93.75%)

409.57 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/migrations/1727701873513-notification_update_updated_at.ts
1
import { MigrationInterface, QueryRunner } from 'typeorm';
2

NEW
3
export class NotificationUpdateUpdatedAt1727701873513
×
4
  implements MigrationInterface
5
{
6
  public async up(queryRunner: QueryRunner): Promise<void> {
NEW
7
    await queryRunner.query(`
×
8
            CREATE TRIGGER update_push_notification_devices_updated_at
9
                BEFORE UPDATE
10
                ON
11
                    push_notification_devices
12
                FOR EACH ROW
13
            EXECUTE PROCEDURE update_updated_at();
14
    `);
NEW
15
    await queryRunner.query(`
×
16
            CREATE TRIGGER update_notification_subscriptions_updated_at
17
                BEFORE UPDATE
18
                ON
19
                    notification_subscriptions
20
                FOR EACH ROW
21
            EXECUTE PROCEDURE update_updated_at();
22
    `);
23
  }
24

25
  public async down(queryRunner: QueryRunner): Promise<void> {
NEW
26
    await queryRunner.query(
×
27
      `DROP TRIGGER IF EXISTS update_push_notification_devices_updated_at ON push_notification_devices;`,
28
    );
NEW
29
    await queryRunner.query(
×
30
      `DROP TRIGGER IF EXISTS update_notification_subscriptions_updated_at ON notification_subscriptions;`,
31
    );
32
  }
33
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc