Adding is_protected default = false.
This commit is contained in:
parent
ac0b003c57
commit
87299898fc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue