protected function getBoltTablesSchema(Schema $schema) { $tables = parent::getBoltTablesSchema($schema); foreach ($tables as $table) { if ($table->getName() == 'bolt_relations') { $table->addColumn('sort', 'integer', array('default' => 0)); } } return $tables; }
/** * @param Application $app */ public function __construct(Application $app) { $this->app = $app; if (!$this->loadCache()) { $this->getConfig(); $this->saveCache(); // if we have to reload the config, we will also want to make sure the DB integrity is checked. Database\IntegrityChecker::invalidate(); } $this->setTwigPath(); $this->setCKPath(); }
public function __construct(\Bolt\Application $app) { $this->app = $app; $this->reservedfieldnames = array('id', 'slug', 'datecreated', 'datechanged', 'datepublish', 'datedepublish', 'ownerid', 'username', 'status', 'link'); if (!$this->loadCache()) { $this->getConfig(); $this->saveCache(); // if we have to reload the config, we will also want to make sure the DB integrity is checked. \Bolt\Database\IntegrityChecker::invalidate(); } $this->setTwigPath(); $this->setCKPath(); }