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

feat: #be add timestamps everywhere in db

parent 8e79b1f9
No related branches found
No related tags found
No related merge requests found
import { Knex } from "knex";
export async function up(knex: Knex): Promise<void> {
knex.schema
.alterTable("words", (table) => table.timestamps())
.alterTable("games", (table) => table.timestamps())
.alterTable("clues", (table) => table.timestamps())
.alterTable("shots", (table) => table.timestamps());
}
export async function down(knex: Knex): Promise<void> {
knex.schema
.alterTable("words", (table) => table.dropTimestamps())
.alterTable("games", (table) => table.dropTimestamps())
.alterTable("clues", (table) => table.dropTimestamps())
.alterTable("shots", (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