Adding is_protected default = false.

This commit is contained in:
sergiotarxz 2024-07-17 01:28:25 +02:00
parent ac0b003c57
commit 87299898fc

View File

@ -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;