Database import tables on every install with "IF NOT EXISTS" (#336)

* Database import tables on every install with "IF NOT EXISTS"

This fixed errors when one table is missing or is duplicated

* Add success message on import data

* Reorder
This commit is contained in:
Slawomir Boczek
2025-10-27 16:27:22 +01:00
committed by GitHub
parent 8f47b36dc8
commit 2580edadf8
10 changed files with 150 additions and 56 deletions

View File

@@ -0,0 +1,16 @@
<?php
namespace MyAAC\Models;
use Illuminate\Database\Eloquent\Model;
class ForumBoard extends Model {
protected $table = TABLE_PREFIX . 'forum_boards';
public $timestamps = false;
protected $fillable = [
'name', 'description', 'ordering',
'guild', 'access', 'closed', 'hide',
];
}