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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:21:05+00:00 2026-05-31T06:21:05+00:00

There is a small project of mine reaching its release, based on squeryl –

  • 0

There is a small project of mine reaching its release, based on squeryl – typesafe relational database framework for Scala (JVM based language).

I foresee multiple updates after initial deployment. The data entered in the database should be persisted over them. This is impossible without some kind of data migration procedure, upgrading data for newer DB schema.
Using old data for testing new code also requires compatibility patches.

Now I use automatic schema generation by framework. It seem to be only able create schema from scratch – no data persists.

Are there methods that allow easy and formalized migration of data to changed schema without completely dropping automatic schema generation?

So far I can only see an easy way to add columns: we dump old data, provide default values for new columns, reset schema and restore old data.

How do I delete, rename, change column types or semantics?

If schema generation is not useful for production database migration, what are standard procedures to follow for conventional manual/scripted redeployment?

  • 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-31T06:21:07+00:00Added an answer on May 31, 2026 at 6:21 am

    There have been several discussions about this on the Squeryl list. The consensus tends to be that there is no real best practice that works for everyone. Having an automated process to update your schema based on your model is brittle (can’t handle situations like column renames) and can be dangerous in production. Personally, I like the idea of “migrations” where all of your schema changes are written as SQL. There are a few frameworks that help with this and you can find some of them here. Personally, I just use a light wrapper around the psql command line utility to do schema migrations and data loading as it’s a lot faster for the latter than feeding in the data over JDBC.

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

Sidebar

Related Questions

I'm trying to optimize 'in the small' on a project of mine. There's a
There is small system, where a database table as queue on MSSQL 2005. Several
I am working on a small project which involves a dictionary based text searching
I’m exploring poll() function on a small project of mine, and I noticed that
there is a small project im working on , in this project i have
I'm working on a small project. There will be a Main Abstract class for
For a small project I need to utilize a simple database with very light
For a personal project of mine, I'm writing up a small class to compress
I'm currently working on a small project: there's a protocol for sending some strings
I am working on one small project - web site. There are gallery, user

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.