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 CreateResreqTable extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if (Schema::hasTable('resreq')) {
|
||||
return;
|
||||
}
|
||||
Schema::create('resreq', function (Blueprint $table) {
|
||||
$table->integer('id', true);
|
||||
$table->integer('reqid')->default(0)->index('reqid');
|
||||
|
||||
Reference in New Issue
Block a user