mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 08:06:56 +00:00
OR 조건 대신 IN 연산자를 사용하도록 일부 SQL 쿼리 수정
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user