モジュールのクラスフォルダーにモデルがあります:
public static $definition = array(
'table' => 'myTable',
'primary' => 'id',
'multilang' => false,
'fields' => array(
'day' => array('type' => self::TYPE_INT, 'required' => true),
'hours' => array('type' => self::TYPE_STRING, 'required' => false),
'active' => array('type' => self::TYPE_BOOL, 'required' => false),
),
);
フィールド category_id を追加したいのですが、これを行いました:
public static $definition = array(
'table' => 'MyTable',
'primary' => 'id',
'multilang' => false,
'fields' => array(
'day' => array('type' => self::TYPE_INT, 'required' => true),
'hours' => array('type' => self::TYPE_STRING, 'required' => false),
'active' => array('type' => self::TYPE_BOOL, 'required' => false),
'category_id' => array('type' => self::TYPE_INT, 'required' => true)
),
);
しかし、作成するnew MyTable
と、新しいフィールドが表示されません。キャッシュの問題だと思いますが、解決方法がわかりません。