Undo change to plans migration

Correct migration files should never be updated.
For more information on how database migrations
work in TypeORM: https://orkhan.gitbook.io/typeorm/docs/migrations
This commit is contained in:
Brandon Presley 2023-08-22 09:58:00 +12:00
parent 0c5562a2f1
commit 2a6ba3b36a
1 changed files with 1 additions and 2 deletions

View File

@ -5,11 +5,10 @@ export class plans1667186124792 implements MigrationInterface {
await queryRunner.query(`
CREATE TABLE IF NOT EXISTS plans (
id INTEGER PRIMARY KEY AUTOINCREMENT,
title TEXT NOT NULL,
days TEXT NOT NULL,
workouts TEXT NOT NULL
)
`);
`)
}
public async down(queryRunner: QueryRunner): Promise<void> {