Skip to content

Commit 0fa4aa4

Browse files
committed
fix: 0025_milky_lila_cheney.sql retroactive fix
1 parent 3f6d15d commit 0fa4aa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/db/migrations/0025_milky_lila_cheney.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ UPDATE "session" SET "type" = 'web';
1313

1414
-- Then identify and mark CLIs (sessions with no fingerprint_id and far-future expiration)
1515
UPDATE "session" SET "type" = 'cli'
16-
WHERE "fingerprint_id" IS NULL
16+
WHERE "fingerprint_id" IS NOT NULL
1717
AND "expires" > NOW() + INTERVAL '1 year';
1818

1919
-- 4. Set the column to NOT NULL and add default for future inserts

0 commit comments

Comments
 (0)