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:
15
system/src/Models/NewsCategory.php
Normal file
15
system/src/Models/NewsCategory.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace MyAAC\Models;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class NewsCategory extends Model {
|
||||
|
||||
protected $table = TABLE_PREFIX . 'news_categories';
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'name', 'description', 'icon_id', 'hide'
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user