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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:27:51+00:00 2026-05-29T07:27:51+00:00

I’m writing an app for wp7 using coolstorage and sqlite as the database. The

  • 0

I’m writing an app for wp7 using coolstorage and sqlite as the database.

The reason I chose sqlite was because it appears to have a good ability to do updates to the schema.

However, in my testing I can run an ‘alter table…’ command but if I add a column and then try to read that column I get an error that the column doesn’t exist.

But if I close the app and run it again, the column is there.

I thought about trying to close my connection, but I don’t know how to do that using coolstorage. Is there a way? Would that work?

I’m new to both Coolstorage and SQLite so any help is appreciated.

How can I alter a sqlite schema without closing and re-oppening the app?

[Update: 15 Dec 2011]
We avoided this problem by making sure we ran our schema updates before querying the affected tables, which is probably the right thing to do anyway.

If anyone comes up with a way to do the schema change after running a query against a table, I would still be interested in knowing.

  • 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-29T07:27:52+00:00Added an answer on May 29, 2026 at 7:27 am

    Sqlite has the ability to add columns to the end of existing tables in-place, however any queries which have already been prepared will not show the changes. In my experience, if you prepare the query again, it works. Alternatively, you could close and re-open the database. Note that other schema changes are not directly supported, and will require you to do the following:

    1. Rename the original table
    2. Create a new table with the desired changes.
    3. Copy the data from the old table to the new one, as applicable.
    4. Delete the original table.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're building an app, our first using Rails 3, and we're having to build
I am writing an app with both english and french support. The app requests
I have thousands of HTML files to process using Groovy/Java and I need to
I have a reasonable size flat file database of text documents mostly saved in
I am using Paperclip to handle profile photo uploads in my app. They upload
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text

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.