Welcome Guest, Not a member yet? Register   Sign In
Database Migration confusion
#4

Ok

Let me explain my confusion further.

Say I design and release an app, that makes use of many tables in a database. I,m assuming for each table, there will be a seperate migration with an up and down method. Each migration has the same timestamp.

Then I release an update with a modified schema. I create the migration file that just updates one table and (I'm assuming here) that this then has a different timestamp.

This poses a couple of questions in my mind.

For the original schema, if I have foreign keys in my tables, they will need to be created in a specific order, how can this be accomplished?

Then, if someone installs the app for the first time, all the tables will need to be created and updated, how is this accomplished?

Thanks.
Reply


Messages In This Thread
Database Migration confusion - by MeltedRolo - 04-24-2019, 06:33 AM
RE: Database Migration confusion - by php_rocs - 04-24-2019, 08:04 AM
RE: Database Migration confusion - by kilishan - 04-24-2019, 08:36 AM
RE: Database Migration confusion - by MeltedRolo - 04-24-2019, 09:57 AM
RE: Database Migration confusion - by kilishan - 04-24-2019, 10:36 AM
RE: Database Migration confusion - by MeltedRolo - 04-25-2019, 06:30 AM
RE: Database Migration confusion - by MeltedRolo - 04-25-2019, 08:54 AM
RE: Database Migration confusion - by kilishan - 06-07-2019, 07:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB