#Knex migrations for someone who is new?

11 messages · Page 1 of 1 (latest)

prisma zenith
#

How to use it specifically for a custom plugin?

odd nova
#

Some things of note:

prisma zenith
#

Thank you

marsh pawn
#

Hi @odd nova ,In the migrations init.js file,If I had a schema already present for one table and the table is created in the database and If I want to create one more table which is related to the first table that is present and start my backend the table is not getting created.The table is getting created only if I drop all the tables in the database.And Even if I want to update the schema of a table,it is getting done only if I drop the table and start my Backend.Can u suggest me any solution to this?

odd nova
#

You may be misunderstanding how the migrations system works

#

You can't just edit those files

#

The migrations system ensures that each filename is applied once and only once

#

if you edit a file, it's completely ignored by future runs on the same database

#

You need to add MORE files that do things in addition to the previous files