From 2a6ba3b36a852a4aae5c8049bef80f0191841060 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Tue, 22 Aug 2023 09:58:00 +1200 Subject: [PATCH] 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 --- migrations/1667186124792-plans.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/migrations/1667186124792-plans.ts b/migrations/1667186124792-plans.ts index 9f8401b..81fa4cc 100644 --- a/migrations/1667186124792-plans.ts +++ b/migrations/1667186124792-plans.ts @@ -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 {