When OctoberCMS creates this table, it only has the id column.
I can not figure out why.
Here is the class from my updates/createTable.php file.
class CreateCellphoneTable extends Migration
{
public function up()
{
Schema::create('iaff106_cell_phones', function($table)
{
$table->engine = 'InnoDB';
$table->increments('id');
$table->integer('user_id')->unsigned()->nullable()->index();
$table->string('label')->nullable();
$table->string('phone')->index();
$table->integer('provider_id')->nullable();
$table->boolean('cantxt')->default(true);
$table->boolean('published')->default(false);
$table->timestamps();
});
}
}
I am executing artisan like this:
php artisan plugin:refresh IAFF106.CellPhone
Turns out that Artisan is not very good about reporting problems like a misspelled PHP file for instance.
I had misspelled the createTable.php file in my version.yaml file. Artisan was not doing anything even though it did not complain and it all looked ok.
The combination of anand patel's answer and me coming back for a fresh look helped me find this.