export class AddTransportTypeToProjectSmtpConfig1779975064262 {
    constructor() {
        this.name = "AddTransportTypeToProjectSmtpConfig1779975064262";
    }
    async up(queryRunner) {
        await queryRunner.query(`ALTER TABLE "ProjectSMTPConfig" ADD "transportType" character varying(100) NOT NULL DEFAULT 'SMTP'`);
        await queryRunner.query(`ALTER TABLE "ProjectSMTPConfig" ALTER COLUMN "hostname" DROP NOT NULL`);
        await queryRunner.query(`ALTER TABLE "ProjectSMTPConfig" ALTER COLUMN "port" DROP NOT NULL`);
        await queryRunner.query(`ALTER TABLE "ProjectSMTPConfig" ALTER COLUMN "secure" DROP NOT NULL`);
    }
    async down(queryRunner) {
        await queryRunner.query(`ALTER TABLE "ProjectSMTPConfig" ALTER COLUMN "secure" SET NOT NULL`);
        await queryRunner.query(`ALTER TABLE "ProjectSMTPConfig" ALTER COLUMN "port" SET NOT NULL`);
        await queryRunner.query(`ALTER TABLE "ProjectSMTPConfig" ALTER COLUMN "hostname" SET NOT NULL`);
        await queryRunner.query(`ALTER TABLE "ProjectSMTPConfig" DROP COLUMN "transportType"`);
    }
}
//# sourceMappingURL=1779975064262-AddTransportTypeToProjectSmtpConfig.js.map