question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

More streamlined workflow for early stage app development

See original GitHub issue

While developing a new app, nobody’s using my local database other than me, so the only migration I need is the initial one. The process involves writing some code, blowing away the old state of the database and associated migrations, then generating new ones and applying them back to the database. It sure would be nice to be able to do this literally in one step.

e.g. Something like dnx ef rebuild-all and have it destroy the existing migrations, unapply them from the database, generate new migrations and apply those to the database.

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:65
  • Comments:17 (12 by maintainers)

github_iconTop GitHub Comments

10reactions
bricelamcommented, Sep 28, 2020

I was thinking more about what this might look like today. Imagine if we allowed one temporary, non-destructive, automatic migration locally.

First, it is 100% local. It should never be shared with other team members. It could be stored in the local database. It might be stored as a temporary file somewhere for perf.

It can mutate. Just like automatic migrations in EF6, it would evolve change-to-change without any user interaction. You just change your domain model and it will diff against your local database (or maybe just the last migration) to bring your schema up to date.

It should be non-destructive. You should be able to take the schema back to the previous non-temporary migration without losing any data. Maybe instead of dropping columns and tables, it just makes required columns and foreign keys nullable instead.

It must eventually be reverted. We could do this automatically when adding or applying any migrations. Adding a migration would essentially “commit” all the changes you’ve done into a single migration.

…just some rough ideas I wanted to jot down.

2reactions
fadialjabalicommented, Nov 19, 2020

hey @bricelam , do you think this can be added at some point ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Streamline Your App Development Workflow
How to Streamline Your App Development Workflow · 1. Build a code library · 2. Ease up your data storage infrastructure · 3....
Read more >
How to streamline your mobile app development process
Streamlining the mobile app development process requires optimizing each stage and ensuring that they are integrated into a seamless workflow.
Read more >
7 Ways to Streamline Your Application Development Process
7 Ways to Streamline Your Application Development Process · 1. Optimize Requirement Gathering and Prototyping · 2. Build a Library of Frequently-Used Codes...
Read more >
Streamline your application development process in 5 ...
Streamline your application development process in 5 simple steps · Step 1: Creating a Workflow · Step 2: Backlog Maintenance · Step 3: ......
Read more >
Streamlining Your Mobile App Development Process
Here are some of our top tips for streamlining your mobile app development process – · 1. Define Your Objectives and Key Goals....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found