Skip to content

Commit

Permalink
updated migration
Browse files Browse the repository at this point in the history
  • Loading branch information
nik-dange committed Mar 31, 2024
1 parent 2ed5faa commit f3c55d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const TABLE_NAME = 'Feedback';
const OLD_NAME = 'title';
const NEW_NAME = 'source';

export class AddFeedbackEventColumn1709112961573 implements MigrationInterface {
export class AddFeedbackEventColum1711860173561 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "${TABLE_NAME}" RENAME COLUMN "${OLD_NAME}" TO "${NEW_NAME}"`);
await queryRunner.query(`ALTER TABLE "${TABLE_NAME}" ALTER COLUMN "${NEW_NAME}" TYPE text`);
Expand Down

0 comments on commit f3c55d2

Please sign in to comment.