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 CreateCaticonsTable extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if (Schema::hasTable('caticons')) {
|
||||
return;
|
||||
}
|
||||
Schema::create('caticons', function (Blueprint $table) {
|
||||
$table->tinyIncrements('id');
|
||||
$table->string('name', 64)->default('');
|
||||
|
||||
Reference in New Issue
Block a user