mirror of
https://github.com/standardnotes/server
synced 2026-07-13 14:01:07 -04:00
14 lines
509 B
TypeScript
14 lines
509 B
TypeScript
import { MigrationInterface, QueryRunner } from 'typeorm'
|
|
|
|
export class addMissingCreatedAt1667994036734 implements MigrationInterface {
|
|
name = 'addMissingCreatedAt1667994036734'
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query('ALTER TABLE `revenue_modifications` ADD `created_at` bigint NOT NULL')
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query('ALTER TABLE `revenue_modifications` DROP COLUMN `created_at`')
|
|
}
|
|
}
|