blob: ac1e2edb76eba6c0625bf5bd49b3e4671f92439d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
import { MigrationInterface, QueryRunner } from "typeorm";
export class premiumSinceAsDate1659921826567 implements MigrationInterface {
name = 'premiumSinceAsDate1659921826567'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE "members" DROP COLUMN "premium_since"
`);
await queryRunner.query(`
ALTER TABLE "members"
ADD "premium_since" TIMESTAMP
`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE "members" DROP COLUMN "premium_since"
`);
await queryRunner.query(`
ALTER TABLE "members"
ADD "premium_since" bigint
`);
}
}
|