Skip to content

Commit

Permalink
fix: remove oneOnOne column in Team table (#9696)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Krick <matt.krick@gmail.com>
  • Loading branch information
mattkrick committed May 1, 2024
1 parent db17c9d commit aa97e05
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import {Client} from 'pg'
import getPgConfig from '../getPgConfig'

export async function up() {
const client = new Client(getPgConfig())
await client.connect()
await client.query(`
ALTER TABLE "Team"
DROP COLUMN IF EXISTS "isOneOnOneTeam";
`)
await client.end()
}

export async function down() {
const client = new Client(getPgConfig())
await client.connect()
await client.query(`
ALTER TABLE "Team"
ADD COLUMN IF NOT EXISTS "isOneOnOneTeam" BOOLEAN NOT NULL DEFAULT FALSE;
`)
await client.end()
}

0 comments on commit aa97e05

Please sign in to comment.