From eedc1460e5dadb00a731c1974642a4db7ab30868 Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@fakecake.org>
Date: Tue, 8 Apr 2025 09:36:04 +0300
Subject: support transparent encryption for feed passwords, bump schema to
 drop length limit of ttrss_feeds.auth_pass

---
 sql/pgsql/migrations/148.sql | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 sql/pgsql/migrations/148.sql

(limited to 'sql/pgsql/migrations/148.sql')

diff --git a/sql/pgsql/migrations/148.sql b/sql/pgsql/migrations/148.sql
new file mode 100644
index 000000000..98a04de3e
--- /dev/null
+++ b/sql/pgsql/migrations/148.sql
@@ -0,0 +1,7 @@
+alter table ttrss_feeds rename column auth_pass to auth_pass_old;
+alter table ttrss_feeds add column auth_pass text;
+update ttrss_feeds set auth_pass = auth_pass_old;
+alter table ttrss_feeds alter column auth_pass set not null;
+alter table ttrss_feeds drop column auth_pass_old;
+
+update ttrss_version set schema_version = 148;
-- 
cgit v1.2.3-54-g00ecf

