1617615657558-add_extension_settings.ts 747 B

123456789101112131415
  1. import { MigrationInterface, QueryRunner } from 'typeorm'
  2. export class addExtensionSettings1617615657558 implements MigrationInterface {
  3. name = 'addExtensionSettings1617615657558'
  4. public async up(queryRunner: QueryRunner): Promise<void> {
  5. await queryRunner.query(
  6. 'CREATE TABLE IF NOT EXISTS `extension_settings` (`uuid` varchar(36) NOT NULL, `extension_id` varchar(255) NULL, `mute_emails` tinyint(1) NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, INDEX `index_extension_settings_on_extension_id` (`extension_id`), PRIMARY KEY (`uuid`)) ENGINE=InnoDB',
  7. )
  8. }
  9. public async down(_queryRunner: QueryRunner): Promise<void> {
  10. return
  11. }
  12. }