Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8666145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:39:20+00:00 2026-06-12T17:39:20+00:00

Where is stored information about current database state (what migration is applied)? I suppose

  • 0
  1. Where is stored information about current database state (what migration is applied)? I suppose it can be “dbo.__MigrationHistory” table or this table is just for logging purpose?

  2. If I enabled migration, added migration and updated my database. After that I checked-in code to SVN and another developer checked it out. What this another developer has to do to create/update his own database?

I see such options:

1) Call Update-Database command right away.

2) Do everything from beginning (Enable-Migration, Add-Migration, Update-Database).

3) Do everything but skip Add-Migration step (it is already present and it seems strange to add it once again for every new developer).

Which of my assumption is right or if no one where is the right way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T17:39:22+00:00Added an answer on June 12, 2026 at 5:39 pm
    1. To retrieve which migrations have been applied to the database, you can use the Get-Migrations command (reference).

    2. Everything depends on how the database is created, which initializer you are using.
      This article is worth reading if you are unfamiliar with those.

      • When using the DropCreateDatabaseAlways initializer, you don’t really need to care about updating your database, because your database will be deleted & recreated at each application startup.

      • When using the DropCreateDatabaseWhenModelChanges initiliazer, your database will be dropped then recreated if EF detects the model has changed at the application startup.

      • When using the CreateDatabaseIfNotExists initilizer or if no initializer has been defined, your database will be created if it does not already exists. If the database already exists & you added a Migration, you (and every developer retrieving your code) need to use the Update-Database command to update the database.

      • There is a new initializer introduced with Code-First Migrations: MigrateDatabaseToLatestVersion, this initializer automatically update the database to the latest Migration defined.
        See this page’s last section: http://msdn.microsoft.com/en-us/data/jj591621.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm designing a database which will store information about some artists. These artists can
I have a table in which users store scores and other information about said
I have information stored in a database that I want to use to create
My PostgreSQL database contains a table to store instances of a registered entity. This
I want to be able to store information about a song that has been
I'm creating an application that allows the user to store information about their classes.
I am working on a php project that needs to store information about various
I want to store configuration information about my DLL in an XML file inside
My new MVC3 web application allows users to store some information about themselves, and
Does Unicode store stroke count information about Chinese, Japanese, or other stroke-based characters?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.