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 7058437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:06:45+00:00 2026-05-28T04:06:45+00:00

I accidentally managed to lose the old version of our data model, and now

  • 0

I accidentally managed to lose the old version of our data model, and now the automatic lightweight migration doesn’t work (obviously). I managed to let Core Data delete the old store if this problem occurs, but i obviously would want to not lose the old data. So how can i manually migrate? On startup, i just get an error that the store coordinator has no persistent stores (error 134140).

I have already tried making a new model version that matches the old one (It actually states the old, used model in the error message), but somehow this doesn’t work either. It used to work before, but apparently i just messed up saving the model verison of the current app store version.

Edit: I just thought of possibly another way (No idea why i didn’t think of this before): Because core data is backed by an SQLite database, can’t i get the information i need (That is, 4 rows from the database, then i can repopulate the rest of it myself) directly from it? If so, what could i use to do this?

  • 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-05-28T04:06:46+00:00Added an answer on May 28, 2026 at 4:06 am

    I’m not exactly sure how it’s done, but the model is versioned, perhaps using an GUID or a cryptographic hash of the model file. So you need exactly the same file that the model was created with.

    Or put another way, you need to be using version control.

    I guess it should be theoretically be possible to exactly recreate your model, but I don’t know of a way of doing it.

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

Sidebar

Related Questions

I accidentally managed to get colour names, #HEX, and a colour preview in Emacs.
I accidentally closed the Console window in Eclipse, and now I can't see the
accidentally at work I wrote the following line of code: string x = (object)
I'm trying to recover an app that I accidentally deleted and managed to do
In Eclipse (latest version) I ended up with the situation seen below. I accidentally
We are currently using VSS for version control. Quite few of our developers are
Don't ask me how but I managed to get accidentally the following remote branches
I accidentally executed chown www-data.www-data /* it was not recursive so i guess my
I accidentally did a git rm filename.txt -f now if I do a git
Accidentally I mixed up between 32Bit and 64Bit library files on my x86 embedded

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.