1690975207883-update_unknown_content.ts 369 B

1234567891011
  1. import { MigrationInterface, QueryRunner } from 'typeorm'
  2. export class UpdateUnknownContent1690975207883 implements MigrationInterface {
  3. public async up(queryRunner: QueryRunner): Promise<void> {
  4. await queryRunner.manager.query('UPDATE items SET content_type = "Note" WHERE content_type = "Unknown"')
  5. }
  6. public async down(): Promise<void> {
  7. return
  8. }
  9. }