mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-25 04:27:22 +08:00
migrations check if table exists
This commit is contained in:
@@ -13,6 +13,9 @@ class CreateFundsTable extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if (Schema::hasTable('funds')) {
|
||||
return;
|
||||
}
|
||||
Schema::create('funds', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->decimal('usd')->default(0.00);
|
||||
|
||||
Reference in New Issue
Block a user