I simply create a migration and run migrate with commands here is the commands I type and the result I get;
Serkan:itsp mehmet$ php artisan make:migration alter_table_rates --path="database/migrations/v141/" --table="rates"
Created Migration: 2016_05_27_120219_alter_table_rates
Serkan:itsp mehmet$ php artisan migrate
Nothing to migrate.
Here is the new migration file content I simply add new column('purchase'):
public function up()
{
Schema::table('rates', function (Blueprint $table) {
$table->integer('purchase')->nullable();
});
}
public function down()
{
Schema::table('rates', function (Blueprint $table) {
$table->dropColumn(['purchase']);
});
}
What do you think that can cause this ?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1TGGMhv
via IFTTT
Aucun commentaire:
Enregistrer un commentaire