mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-26 14:04:17 +01:00
Database import tables on every install with "IF NOT EXISTS"
This fixed errors when one table is missing or is duplicated
This commit is contained in:
@@ -18,7 +18,16 @@ class Changelog extends Model {
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'body', 'type', 'where',
|
||||
'date', 'player_id', 'hide',
|
||||
];
|
||||
|
||||
public function scopeIsPublic($query) {
|
||||
$query->where('hide', '!=', 1);
|
||||
}
|
||||
|
||||
public function player() {
|
||||
return $this->belongsTo(Player::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user