OR 조건 대신 IN 연산자를 사용하도록 일부 SQL 쿼리 수정

This commit is contained in:
static
2026-01-16 10:24:32 +09:00
parent cb5105a355
commit d8e18fb1d3
3 changed files with 4 additions and 4 deletions

View File

@@ -53,9 +53,7 @@ export const up = async (db: Kysely<any>) => {
export const down = async (db: Kysely<any>) => {
await db
.deleteFrom("file_log")
.where((eb) =>
eb.or([eb("action", "=", "add-to-category"), eb("action", "=", "remove-from-category")]),
)
.where("action", "in", ["add-to-category", "remove-from-category"])
.execute();
await db.schema.dropTable("file_category").execute();