schema->hasTable('UserWorkLog')) { return; } $sql = file_get_contents(__DIR__ . '/../update.sql'); $this->schema->getConnection()->unprepared($sql); } /** * Reverse the migration */ public function down() { $this->schema->dropIfExists('UserWorkLog'); } }