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