Release 3.0.0 is a major release and many changes have been made. Migrating from 2.x.x requires some effort:
-
H2 database: version update from 1.4.200 to 2.2.224:
- The new H2 database drivers cannot read the database version 1.4.200; too many changes have been made.
- If you are using H2, it is best to export your data and import it into the new database.
-
Handlers:
- Method
replaceVariables
andreplaceTemplateVariables
have been replaced byrender
andrenderAll
.render
: Template variable{$var}
is set bysetVar("var", value);
in this method.renderAll
: Global template variable (whole page){$var}
is set bysetVarAll("var", value);
in this method.
- Method
-
DB tables (see DB install script):
- Add columns
phone
to tableusers
; 15 characters. - Add table
roles
. - Add table
users_roles
with indexes. - Check if you have all the settings (table
properties
) and modify and/or add them.
- Add columns
-
Authorization:
- Fill out the
roles
table using therole
values from all users. Again, assign the correct roles to users per theusers_roles
table. - The value in the column
role
of the tableusers
can then be deleted.
- Fill out the
-
Routing:
- Use the new user-routes in
cfg/routing.xml
(packagech.autumo.beetroot.handler.users
). - Add the
LogHandler
route if you want see log events on the web.
- Use the new user-routes in
-
Web Resources
- Make a backup of the
web
directory and remove it, then copy theweb
directory from the new release and add again your own templates. - Also add again your own translations to
web/html/lang_*.properties
. - Add again your own CSS styles.
- Adjust again your menu and admin-menu blocks if you have changed them.
- Adjust again your layout block if you have changed it.
- Generally, check block templates if you have made customizations.
- Add again any customization to templates and
columns.cfg
files (changes here:*.role
->*.roles
, also add*.phone
).
- Make a backup of the
-
Template adjustments
- Tag change:
{$ifrole}
->{$if-role}
. - Tag change:
{$endifrole}
->{$endif-role}
.
- Tag change:
-
Configuration
cfg/beetroot.cfg
:- Add key
dispatcher_log
(if you want to use the log handler). - Adjust values in keys
ws_cache_size
andws_file_cache_size
. - Add key
web_input_map
(initially empty). - Remove
web_roles
. - Add
web_admin_role_delete=no
. - Add
ws_use_ext_roles=yes
.
- Add key
cfg/htmlmap.cfg
:- Add it if you want to use customized HTML input types and patterns.
If you have further problems with the migration, contact autumo at discord.
Click here to go to the main page.