You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$moduleSetup = array(
....
"tables" => array("books"); // may be missing or empty
)
dentro al plugin in config/sql: schema.php, e _schema.sql (per ora mysql_schema.sql)
schema.php sara', per books per esempio:
class BooksSchema extends CakeSchema {
var $name = 'Books';
.....
.....
var $books = array(
'id' => array(....)
........
);
}
tramite script shell (dbadmin, da fare) posso generare scheletro di schema per un certo driver sql
Setup automatico:
al momento del setup sara' usato direttamente il file di schema per il driver, se il modulo ha sue tabelle; se non si trova il setup si blocca (messaggio di errore)
se le tabelle sono gia' presenti si verifica se sono uguali (altrimenti plug fallisce con messaggio)
se non ci sono sono create automaticamente dallo script _schema.sql
The text was updated successfully, but these errors were encountered:
aggiunto cleanup della cache dopo setup nuovo modulo
gestione "automatica" object_type BEdita - evitare di scrivere eplicitamente $moduleSetup["BEditaObjects"], leggere dai model del plugin che estendono BEAppObjectModel
Ancora da risolvere i problemi del commento precedente, ma il meccanismo funziona.
Passo a milestone successiva.
Setup automatico:
The text was updated successfully, but these errors were encountered: