mirror of https://github.com/MaxLeiter/Drift
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
389 B
TypeScript
13 lines
389 B
TypeScript
"use strict"
|
|
import { DataTypes } from "sequelize"
|
|
import type { Migration } from "../database"
|
|
|
|
export const up: Migration = async ({ context: queryInterface }) =>
|
|
queryInterface.addColumn("posts", "expiresAt", {
|
|
type: DataTypes.DATE,
|
|
allowNull: true
|
|
})
|
|
|
|
export const down: Migration = async ({ context: queryInterface }) =>
|
|
await queryInterface.removeColumn("posts", "expiresAt")
|