Marek BrzeziĆski
10/20/2022, 10:47 AMprisma db pull
to automatically update schema with the imported data tables? đ€Takeo Kusama
10/20/2022, 10:57 AMprisma db pull --print
to old db
and copy needed part of scheme and paste schema.prisma file and run prisma migrate dev
.
New tables is created, restore data in any way.
e.g.
1. use db dump and restore tool like pg_dump and psql when using postgreSQL.
2. Export old data csv, json etc. Then write and run script using sql or prisma orm to import.Ran Rosenmann
10/20/2022, 10:58 AMRaphael Etim
10/20/2022, 10:58 AMdb pull
will introspect the database and add it to your schema file as Ran has pointed out.Marek BrzeziĆski
10/20/2022, 11:03 AMVladi Stevanovic