Home For companies Corporate Support HQBird Migration Framework Performance consulting Slow Firebird: causes Migration consulting Data export For developers MQFS One Turbo SQL Firebird Developer Channel & content Contact Talk to MQFS
Home / Migration Framework / User guide
Migration guide

Firebird Migration Framework guide — step by step

This is the same guide that ships with the installer, as an HTML page: read it fast, find a parameter by name and follow the steps in order. The PDF is still available for download.

User guide

From the old database to the converted one — in the right order

The migration framework converts the Firebird / HQBird databases to the desired version, performing the backup/restore process, recompiling objects and adapting them to the new version. This page is the same guide that ships with the installer — to read fast and to find a parameter by name.

Thousands of databases

Mass conversion, not one by one — the same process for every database.

You keep control

Per-database logs, OK/ERROR folders and scripts that can run before and after.

Dialect 3 and fixes

Dialect adjustment and automatic correction of current_date to localtimestamp.

Charset and collate

Parameters for the ISQL/script charset and collate, plus backup/restore inside the process.

Steps to migration, in order: 1) download and install the application; 2) add the databases in the current version to the IN subfolder; 3) adjust the settings in the conf.ini file; 4) run the Migrate.exe executable; 5) analyse the logs; 6) get the successfully converted databases from the /OUT/OK folder.
Compatibility and installation

Windows (standalone or with HQBird) and Linux Ubuntu 22+

The framework runs on Windows standalone or integrated with HQBird v2024. On Linux it is certified for Ubuntu 22 and above.

With a licensed HQBird: unpack into C:\HQBird\Migr — the migration uses the Firebird binaries installed in C:\HQBird\FirebirdXX, so source and target versions must be installed through HQBird.
Standalone: use C:\Migrate (Windows) or /opt/migrate (Linux). Inside the root folder there is an FB folder with one subfolder per version — one for the source and one for the target.
Download the installer

Source and target

The FB folder keeps the versions: one subfolder for the source, one for the target.

.FDB or .FBK

If the source is .FDB, the framework backs it up with the old binaries and restores with the new ones. If it is .FBK, it restores directly.

Per-database logs

Every database has its own log; success goes to OK, problems stay visible for analysis.

Pre and post scripts

RUN_PRESCRIPT and RUN_POSSCRIPT run the .sql files from scripts\pre and scripts\pos, in alphabetical order.

conf.ini

Configuration: AUTH and PARAM sections

Every setting lives in conf.ini, in the installation root.

AUTH — authentication

SYSDBA_PASSWORD — SYSDBA password (needed when HQBird uses a different one; default masterkey).
OWNER_USER — if your database has another user as owner, set it here so the migrated database keeps the same owner. Otherwise keep SYSDBA.
OWNER_PASSWORD — that owner password (default masterkey).

PARAM — execution order

The steps run exactly in this sequence (that is why they sit in this order in the file):
1. RUN_PRESCRIPT · 2. UPGRADE_DBS · 3. UPGRADE_DIALECT · 4. REPLACE_DOUBLE_QUOTES · 5. RUN_POSSCRIPT · 6. RECOMPILE.

Other parameters: CHARSET_ISQL, CHARSET_SCRIPTS, COLLATE_SCRIPTS, BKP, RST, VERSION_IN, VERSION_OUT, EXT_DB, EXT_BKP, LANG, ISQL_PAGE_LENGTH, HIDE_SRC_VW / HIDE_SRC_TR / HIDE_SRC_SP and SIMPLE_LOG.

RUN_PRESCRIPT

Runs the .sql files from scripts\pre against the databases in the in folder (only .FDB). You can target specific databases with --bd=DB1.FDB,DB2.FDB at the top of the script.

UPGRADE_DBS

Backs up with the original version binaries and restores with the new version ones.

UPGRADE_DIALECT

Migrates the restored database to dialect 3, fixing current_date to localtimestamp.

REPLACE_DOUBLE_QUOTES / RECOMPILE

Fixes double-quoted identifiers and recompiles objects — leaving the database ready for the new version.

First run

Application download and first run

The application can be downloaded from download.mqfs.com.br. When running it for the first time, it checks whether there is a licence for use in the local folder. If it cannot find one, you will be asked for licensing information. If you already have a registration key, enter it in the application when requested — otherwise a registration request is made with the data provided and an e-mail is sent with the licensing details.

Free conversions: the framework will allow a limited number of successful conversions for free, but this availability is not guaranteed and may be changed or interrupted at any time without prior notice. For volume, the path is a licence (and migration consulting).

Download

Installers and guides (PT and EN) live at download.mqfs.com.br.

Licence

The check is local, in the application folder; registration arrives by e-mail.

Before migrating

Run it on a test database first: it is the cheapest way to get conf.ini right.

Need help?

Migration consulting runs the process with a rollback plan and homologation.

Download

Baixe o Framework de Migração

Instale no seu ambiente e rode a migração em 2 cliques — há versão avulsa e versão integrada ao HQBird.

Ver notas de versão (release notes)

Os arquivos e o histórico de cada versão ficam em download.mqfs.com.br. O framework permite um número limitado de conversões gratuitas; o licenciamento é feito dentro do próprio aplicativo.

Want to migrate without the drama?

Tell me how many databases and which version — I will say the fastest and the safest path.