---
title: Update Todomator
project: Todomator
version: 1.7
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/todomator/1-7/guides/update/
updated: 2026-11-19T04:33:09.388Z
---

# Update Todomator

> Move an existing installation to release 1.7.

Follow these steps to update an existing installation.

## Prepare the update

1. [Back up your data](../../recipes/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:

| Script | Run it when your version is |
| --- | --- |
| `database-20240119.sql` | Installed before 19 January 2024 |
| `database_1-3.sql` | Older than 1.3 |
| `database_1-4.sql` | Older than 1.4 |
| `database_1-5.sql` | Older than 1.5 |
| `database_1-6.sql` | Older than 1.6 |

For example:

```bash
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:

```bash
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:

```bash
npm install
```

**3.** Start Todomator:

```bash
node index.js
```
