mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
migrations check if table exists
This commit is contained in:
@@ -13,6 +13,9 @@ class CreateIplogTable extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if (Schema::hasTable('iplog')) {
|
||||
return;
|
||||
}
|
||||
Schema::create('iplog', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('ip', 64)->default('');
|
||||
|
||||
Reference in New Issue
Block a user