1625164984414-change_setting_timestamps.ts 469 B

123456789101112
  1. import { MigrationInterface, QueryRunner } from 'typeorm'
  2. export class changeSettingTimestamps1625164984414 implements MigrationInterface {
  3. public async up(queryRunner: QueryRunner): Promise<void> {
  4. await queryRunner.query('ALTER TABLE `settings` CHANGE `created_at` `created_at` BIGINT NOT NULL')
  5. await queryRunner.query('ALTER TABLE `settings` CHANGE `updated_at` `updated_at` BIGINT NOT NULL')
  6. }
  7. public async down(): Promise<void> {
  8. return
  9. }
  10. }