mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04:00
fix migration errors
This commit is contained in:
@ -13,6 +13,7 @@ class CreateUnitsTable extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if (!Schema::hasTable('units')) {
|
||||
Schema::create('units', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
@ -21,6 +22,7 @@ class CreateUnitsTable extends Migration
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
|
||||
@ -13,6 +13,7 @@ class CreatePaymentMethodsTable extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if (!Schema::hasTable('payment_methods')) {
|
||||
Schema::create('payment_methods', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
@ -21,6 +22,7 @@ class CreatePaymentMethodsTable extends Migration
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
|
||||
Reference in New Issue
Block a user