Skip to content
Snippets Groups Projects
Commit aea9bad7 authored by Paolo.Brasolin's avatar Paolo.Brasolin
Browse files

fix: #be buggy timestamp migration

parent 45e5de3a
No related branches found
No related tags found
No related merge requests found
import { Knex } from "knex"; import { Knex } from "knex";
export async function up(knex: Knex): Promise<void> { export async function up(knex: Knex): Promise<void> {
knex.schema return knex.schema
.alterTable("words", (table) => table.timestamps()) .alterTable("words", (table) => table.timestamps())
.alterTable("games", (table) => table.timestamps()) .alterTable("games", (table) => table.timestamps())
.alterTable("clues", (table) => table.timestamps()) .alterTable("clues", (table) => table.timestamps())
...@@ -9,7 +9,7 @@ export async function up(knex: Knex): Promise<void> { ...@@ -9,7 +9,7 @@ export async function up(knex: Knex): Promise<void> {
} }
export async function down(knex: Knex): Promise<void> { export async function down(knex: Knex): Promise<void> {
knex.schema return knex.schema
.alterTable("words", (table) => table.dropTimestamps()) .alterTable("words", (table) => table.dropTimestamps())
.alterTable("games", (table) => table.dropTimestamps()) .alterTable("games", (table) => table.dropTimestamps())
.alterTable("clues", (table) => table.dropTimestamps()) .alterTable("clues", (table) => table.dropTimestamps())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment