Indefero

ModelChanges


Table of Contents

This pages contains information about model changes

Introduction

Indefero 1.x uses Pluf_Model for accessing SQL-based data. The following information should serve as an entry point in case you want to mess with that.

Adding new models

If you want to add a new table / model, you need to do the following steps:

  1. Create a model object directly underknees src/IDF
  2. If your new model has relations to other existing models, add them to src/IDF/relations.php
  3. Add a new migration script for the model (src/IDF/Migrations/) and ensure that you configured both, a way to upgrade to and a way to downgrade from your change
  4. Add your model to the list of models in src/IDF/Migrations/Install.php for the initial installation
  5. Add your model to the list of models in src/IDF/Migrations/Backup.php for json-based backups

Created: 11 years 3 months ago
by Natalie Adams

Page rendered in 0.02160s using 24 queries.