Skip to content

Commit 1aa90a2

Browse files
committed
Fix
1 parent bbbe222 commit 1aa90a2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

drizzle-kit/src/dialects/sqlite/introspect.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,11 @@ export const fromDatabase = async (
236236
const dbTablesWithSequences = await db.query<{
237237
name: string;
238238
}>(
239-
`SELECT * FROM sqlite_master WHERE name !== 'sqlite_sequence'
240-
and name !== 'sqlite_stat1'
241-
and name !== '_litestream_seq'
242-
and name !== '_litestream_lock'
243-
and tbl_name !== '_cf_KV'
239+
`SELECT * FROM sqlite_master WHERE name != 'sqlite_sequence'
240+
and name != 'sqlite_stat1'
241+
and name != '_litestream_seq'
242+
and name != '_litestream_lock'
243+
and tbl_name != '_cf_KV'
244244
and sql GLOB '*[ *' || CHAR(9) || CHAR(10) || CHAR(13) || ']AUTOINCREMENT[^'']*';`,
245245
).then((tables) => {
246246
queryCallback('tablesWithSequences', tables, null);
@@ -274,7 +274,7 @@ export const fromDatabase = async (
274274
pragma_index_info(il.name) AS ii
275275
WHERE
276276
m.type = 'table'
277-
and m.tbl_name !== '_cf_KV'
277+
and m.tbl_name != '_cf_KV'
278278
ORDER BY m.name COLLATE NOCASE;
279279
`).then((indexes) => {
280280
queryCallback('indexes', indexes, null);
@@ -483,7 +483,7 @@ export const fromDatabase = async (
483483
f."on_delete" as "onDelete",
484484
f.seq as "seq"
485485
FROM sqlite_master m, pragma_foreign_key_list(m.name) as f
486-
WHERE m.tbl_name !== '_cf_KV';`,
486+
WHERE m.tbl_name != '_cf_KV';`,
487487
).then((fks) => {
488488
queryCallback('fks', fks, null);
489489
return fks.filter((it) => filter({ type: 'table', schema: false, name: it.tableFrom }));

0 commit comments

Comments
 (0)