【发布时间】:2015-01-05 02:01:30
【问题描述】:
OctoberCMS 创建此表时,只有 id 列。
我不知道为什么。
这是我的更新/createTable.php 文件中的类。
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();
});
}
}
我正在像这样执行工匠:
php artisan plugin:refresh IAFF106.CellPhone
【问题讨论】:
-
创建了哪些列,没有创建哪些列?
标签: mysql laravel-4 laravel-artisan octobercms