recipe-backend/src/migrations/1758988748273-DropNotNullForIngredientGroupTitle.ts
2025-09-27 18:21:10 +02:00

12 lines
402 B
TypeScript

import { MigrationInterface, QueryRunner } from "typeorm";
export class DropNotNullForIngredientGroupTitle1758988748273 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query("ALTER TABLE recipe_ingredient_group ALTER COLUMN title DROP NOT NULL")
}
public async down(queryRunner: QueryRunner): Promise<void> {
}
}