mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
migrations check if table exists
This commit is contained in:
@@ -13,6 +13,9 @@ class CreateRulesTable extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if (Schema::hasTable('rules')) {
|
||||
return;
|
||||
}
|
||||
Schema::create('rules', function (Blueprint $table) {
|
||||
$table->smallIncrements('id');
|
||||
$table->unsignedSmallInteger('lang_id')->default(6);
|
||||
|
||||
Reference in New Issue
Block a user