I have encounter the issue with typeorm migrations. Sometimes my AWS DB clears the migration table and try to run the migration again, because it is not recorded in the migration db. Of course it falis,, because all relations exist. After the code inspection I have found, that the migration has name mismatch between classname and the name property like this:
export class InitialMigration1714122650425 implements MigrationInterface {
name = 'InitialMigration17141226504251714122650425';
/* some code */
}
Could it be the reason why the migration is deleted from the migration DB? Because I know, that typeorm has some nosence issues for example, more than 2 .andWhere don’t work.