I'm new to October, and I came across an issue which I wasn't able to solve. When I create a plugin from the command line, and run plugin:refresh the tables in the database are not being created.
The version.yaml is correct as per documentation. Here are the contents of the files. Plugin/Mejlak/PropertyExtender/Updates/create_extras_table.php
<?php namespace Mejlak\Propertyextender\Updates;
use Schema;
use October\Rain\Database\Schema\Blueprint;
use October\Rain\Database\Updates\Migration;
class CreateExtrasTable extends Migration
{
public function up()
{
Schema::create('mejlak_propertyextender_extras', function(Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id');
$table->string('title');
$table->timestamps();
});
}
public function down()
{
Schema::dropIfExists('mejlak_propertyextender_extras');
}
}
And here is the version.yaml
1.0.1:
- 'First version of propertyextender'
- create_extras_table.php
Any help would be highly appreciated