From aea9bad7415f47773c6a9621a4459756766c89aa Mon Sep 17 00:00:00 2001 From: Paolo Brasolin <paolo.brasolin@eurac.edu> Date: Tue, 5 Apr 2022 14:12:27 +0200 Subject: [PATCH] fix: #be buggy timestamp migration --- backend/migrations/20220404144303_timestamps.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/migrations/20220404144303_timestamps.ts b/backend/migrations/20220404144303_timestamps.ts index b812661..52a5c1b 100644 --- a/backend/migrations/20220404144303_timestamps.ts +++ b/backend/migrations/20220404144303_timestamps.ts @@ -1,7 +1,7 @@ import { Knex } from "knex"; export async function up(knex: Knex): Promise<void> { - knex.schema + return knex.schema .alterTable("words", (table) => table.timestamps()) .alterTable("games", (table) => table.timestamps()) .alterTable("clues", (table) => table.timestamps()) @@ -9,7 +9,7 @@ export async function up(knex: Knex): Promise<void> { } export async function down(knex: Knex): Promise<void> { - knex.schema + return knex.schema .alterTable("words", (table) => table.dropTimestamps()) .alterTable("games", (table) => table.dropTimestamps()) .alterTable("clues", (table) => table.dropTimestamps()) -- GitLab