mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-12-13 11:16:50 +00:00
Fixes #10 - Don't use defaults for json fields in migration
This commit is contained in:
@@ -12,6 +12,11 @@ class AccessListAuth extends Model {
|
||||
$beforeInsert () {
|
||||
this.created_on = Model.raw('NOW()');
|
||||
this.modified_on = Model.raw('NOW()');
|
||||
|
||||
// Default for meta
|
||||
if (typeof this.meta === 'undefined') {
|
||||
this.meta = {};
|
||||
}
|
||||
}
|
||||
|
||||
$beforeUpdate () {
|
||||
|
||||
Reference in New Issue
Block a user