Migrate: Remove database create logic inside lift, fail fast if the database doesn't exist.

Created on 6 Sep 2019  路  2Comments  路  Source: prisma/migrate

Right now lift has all sorts of logic to create a database. This won't work for every datasource and it'd be better to create datasouces in prisma init or the prisma studio flows, where we can ask the user some questions and hold their hand.

If the user doesn't use the prisma init flow, we'll expect them to bring their own database (BYOD).

Instead Lift commands will check if it can connect to the database and fail fast if it can't connect. This will resolve #26 and it will make the migration engine code cleaner.

Thoughts @schickling ?

bu2-confirmed kinbug

Most helpful comment

Shipped in latest alpha.

All 2 comments

My rust code is here:

https://github.com/prisma/prisma-engine/pull/34

Next week working with @timsuchanek to use this in lift/photon.

Shipped in latest alpha.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nickreynke picture nickreynke  路  4Comments

steebchen picture steebchen  路  3Comments

yantakus picture yantakus  路  3Comments

chanphiromsok picture chanphiromsok  路  3Comments

julien1619 picture julien1619  路  3Comments