mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
migrations check if table exists
This commit is contained in:
@@ -13,6 +13,9 @@ class CreateAttachmentsTable extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if (Schema::hasTable('attachments')) {
|
||||
return;
|
||||
}
|
||||
Schema::create('attachments', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->unsignedMediumInteger('userid')->default(0);
|
||||
|
||||
Reference in New Issue
Block a user