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;