mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-23 22:53:09 +01:00
Fixes #10 - Don't use defaults for json fields in migration
This commit is contained in:
1 parent
02b4def04a
commit
bbe02bc70a
12 files changed
+105
-11
No files matched your search
@@ -13,6 +13,11 @@ class User extends Model {
|
||||
$beforeInsert () {
|
||||
this.created_on = Model.raw('NOW()');
|
||||
this.modified_on = Model.raw('NOW()');
|
||||
|
||||
// Default for roles
|
||||
if (typeof this.roles === 'undefined') {
|
||||
this.roles = [];
|
||||
}
|
||||
}
|
||||
|
||||
$beforeUpdate () {
|
||||
|
||||
Reference in new issue
Block a user