1667994036734-add_missing_created_at.ts 509 B

12345678910111213
  1. import { MigrationInterface, QueryRunner } from 'typeorm'
  2. export class addMissingCreatedAt1667994036734 implements MigrationInterface {
  3. name = 'addMissingCreatedAt1667994036734'
  4. public async up(queryRunner: QueryRunner): Promise<void> {
  5. await queryRunner.query('ALTER TABLE `revenue_modifications` ADD `created_at` bigint NOT NULL')
  6. }
  7. public async down(queryRunner: QueryRunner): Promise<void> {
  8. await queryRunner.query('ALTER TABLE `revenue_modifications` DROP COLUMN `created_at`')
  9. }
  10. }