I have 2 migrations, the first one has the following name 2019_11_06_171637_create_settings_table.php
and structure:
class CreateSettingsTable extends Migration
{
public function up()
{
Schema::create('settings', function (Blueprint $table) {
//code
});
}
//function down
}
the second one has the following name 2020_07_08_246856_create_settings_table.php
and structure:
class CreateAnotherSettingsTable extends Migration
{
public function up()
{
Schema::create('another_settings', function (Blueprint $table) {
//code
});
}
//function down
}
When I run php artisan migrate
all migrations going well until Migrating: 2020_07_08_246856_create_settings_table
- it's trying to run the previos migration(2019_11_06_171637_create_settings_table.php
) and fire an exception Table 'settings' already exists
.
Does this mean that the name of the migration file must be unique after the date and numbers?