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 CreateAvpsTable extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if (Schema::hasTable('avps')) {
|
||||
return;
|
||||
}
|
||||
Schema::create('avps', function (Blueprint $table) {
|
||||
$table->string('arg', 20)->default('')->primary();
|
||||
$table->text('value_s');
|
||||
|
||||
Reference in New Issue
Block a user