Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Fix missing status column in import that affects auto-migrated installations.

Kailash Nadhd219f6549edc
diff --git a/queries.sql b/queries.sql
index 2ee40f5a..2e7cfe3c 100644
--- a/queries.sql
+++ b/queries.sql
@@ -75,8 +75,8 @@ SELECT id from sub;
-- Upserts a subscriber where existing subscribers get their names and attributes overwritten.
-- If $6 = true, update values, otherwise, skip.
WITH sub AS (
- INSERT INTO subscribers as s (uuid, email, name, attribs)
- VALUES($1, $2, $3, $4)
+ INSERT INTO subscribers as s (uuid, email, name, attribs, status)
+ VALUES($1, $2, $3, $4, 'enabled')
ON CONFLICT (email)
DO UPDATE SET
name=(CASE WHEN $6 THEN $3 ELSE s.name END),