LixeeTIC, add/modify specific features

@pierre-gilles, so I recreated a topic with the addition of specific features for the Lix

1 Like

Ok! Don’t hesitate to ask if you have any questions about the migration :slight_smile:

@pierre-gilles , I’m coming back to the subject of the migration I’d like to do.
I assume it’s in the server/migrations folder that this takes place.

How is the file name formed? Because I see that all the files have a date/time in their name.

When is the file executed? At Gladys startup?

We use Sequelize’s migration tool:

You can create a migration by running in the server folder :

npx sequelize-cli migration:generate --name nom-de-la-migration

When you’re developing, you can run:

npm run db-migrate:dev

Or for tests :

npm run db-migrate:test

Otherwise, yes it will be run at Gladys startup (only once)

If you look in your SQLite DB, you’ll see there is a table that lists the migrations that have already been executed!

1 Like

Thanks, I’ll let you know as soon as the pull request (PR) is ready with the migration.

@pierre-gilles, the PR is ready. I added the migration.

On my side, I tested it live and it works. I can generate an image if needed if someone wants to test.

Great if you tested it :slight_smile:

I did a quick review, I have one comment:

This feature is available in Gladys Assistant 4.49: