1637738491169-add_item_content_size.ts 481 B

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