Spanish Total.js
English
Documentation For AI agents
Contents

Update Todomator

Move an existing installation to release 1.7.

.md GitHub
On this page

Follow these steps to update an existing installation.

Prepare the update

  1. Back up your data.
  2. Stop Todomator.
  3. Find your current version. Open definitions/init.js and look for CONF.version.

Update the database

Run the update scripts from the application folder, before you start the new release. Run only the scripts for versions newer than yours, in this order:

ScriptRun it when your version is
database-20240119.sqlInstalled before 19 January 2024
database_1-3.sqlOlder than 1.3
database_1-4.sqlOlder than 1.4
database_1-5.sqlOlder than 1.5
database_1-6.sqlOlder than 1.6

For example:

psql "postgresql://user:password@localhost:5432/todomator" -f database_1-6.sql

Do not run database.sql. It is only for new installations, and Todomator runs it by itself.

Then add the columns for release 1.7:

psql "postgresql://user:password@localhost:5432/todomator" -c "ALTER TABLE tbl_user ADD COLUMN IF NOT EXISTS is2fa BOOLEAN DEFAULT FALSE, ADD COLUMN IF NOT EXISTS code TEXT, ADD COLUMN IF NOT EXISTS dtcode TIMESTAMP;"

Update the application

1. Replace the application files with those of the new release. Keep your config file and the databases folder.

2. Install the dependencies:

npm install

3. Start Todomator:

node index.js
Made in Europe