refactor: rename instance.caughtAt to instance.firstRetrievedAt
This commit is contained in:
parent
7e5f3dbf11
commit
30fced38c4
10 changed files with 23 additions and 11 deletions
11
packages/backend/migration/1673812883772-firstRetrievedAt.js
Normal file
11
packages/backend/migration/1673812883772-firstRetrievedAt.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
export class firstRetrievedAt1673812883772 {
|
||||
name = 'firstRetrievedAt1673812883772'
|
||||
|
||||
async up(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "instance" RENAME COLUMN "caughtAt" TO "firstRetrievedAt"`);
|
||||
}
|
||||
|
||||
async down(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "instance" RENAME COLUMN "firstRetrievedAt" TO "caughtAt"`);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue