baublet/w8mngr

View on GitHub
migrations/20220220172420_EmailIdempotenceKeys.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Knex } from "knex";

import { withSchema } from "../api/config/db";

export async function up(knex: Knex): Promise<void> {
  await withSchema(knex).table("email", function (table) {
    table.text("idempotenceKey").notNullable().alter();
    table.text("idempotenceKey").unique().alter();
  });
}

export async function down(knex: Knex): Promise<void> {}