From 87299898fcd5e0715cc3323f81d04fe3776c8bbc Mon Sep 17 00:00:00 2001 From: sergiotarxz Date: Wed, 17 Jul 2024 01:28:25 +0200 Subject: [PATCH] Adding is_protected default = false. --- lib/VPNManager/DB/Migrations.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/VPNManager/DB/Migrations.pm b/lib/VPNManager/DB/Migrations.pm index 0e42b35..527f496 100644 --- a/lib/VPNManager/DB/Migrations.pm +++ b/lib/VPNManager/DB/Migrations.pm @@ -28,6 +28,9 @@ sub MIGRATIONS { username TEXT NOT NULL UNIQUE, password TEXT NOT NULL );', + 'ALTER TABLE vpn_users rename column is_protected to is_protected_old;', + 'ALTER TABLE vpn_users add is_protected NOT NULL DEFAULT false;', + 'UPDATE vpn_users set is_protected = is_protected_old;', ); } 1;