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
{{ message }}
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.
Could you add a comment to the method.upgrade.php so that people be very carefull before using this as an example?
Something like:
//Drop all the tables and recreate them
// NEVER DO LIKE THIS IN YOUR MODULES, SEE HOW TO HANDLE AN UPGRADE, USING SWITCH
$entities = MyAutoload::getAllInstances($this->GetName(), $this->getName());
foreach($entities as $anEntity) {
OrmCore::dropTable($anEntity);
OrmCore::createTable($anEntity);
}
The text was updated successfully, but these errors were encountered:
Could you add a comment to the method.upgrade.php so that people be very carefull before using this as an example?
Something like:
//Drop all the tables and recreate them
// NEVER DO LIKE THIS IN YOUR MODULES, SEE HOW TO HANDLE AN UPGRADE, USING SWITCH
$entities = MyAutoload::getAllInstances($this->GetName(), $this->getName());
foreach($entities as $anEntity) {
OrmCore::dropTable($anEntity);
OrmCore::createTable($anEntity);
}
The text was updated successfully, but these errors were encountered: