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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:41:29+00:00 2026-06-13T18:41:29+00:00

On play 1.0 when we change a variable type or for example changing from

  • 0

On play 1.0 when we change a variable type or for example changing from @OneToMany to @ManyToMany in a Model Play was handling the change automatically but with play 2.0 evolution script drop the database. There is any way to make Play 2.0 apply the change without dropping the DB ?

  • 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-13T18:41:30+00:00Added an answer on June 13, 2026 at 6:41 pm

    Yes, there is a way. You need to disable automatic re-creation of 1.sql file and start to write own evolutions containing ALTERS instead of CREATES – numbering them with 2.sql, 3.sql etc.

    In practice that means, that if you’re working with single database you can also just… manage the database’s tables and columns using your favorite DB GUI. The evolutions are useful only when you can’t use GUI (host doesn’t allow external connections and hasn’t any GUI) or when you are planning to run many instances of the app on the separate databases. Otherwise manual writing the statement will be probably more complicated than using GUI.

    Tip: sometimes, if I’m not sure if I added all required relations and constraints into my manual evolutions I’m deleting them (under git controlled folder!) and running the app with Ebean plugin enabled and saving proposed 1.sql but I’m NOT applying the changes. Later using git I’m reverting my evolutions and compare with saved auto-generated file and convert CREATE statements to the ALTERs. There’s no better option for managing changes without using 3-rd part software.

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

Sidebar

Related Questions

So I am trying to access a jquery soundmanager variable from one script (wpaudio.js
Does play automatically cache data? I'm trying to read this code that someone else
I initialize an ivar AVAudioPlayer variable, play and the try to release its memory.
I'm using the Play! WebDrive Module and the jobs run okay but when tests
I'm trying to play with sed, to change all; #include X to: #include <X>
Trying to play a sound via javascript and want to change it dynamically using
I am trying to setup a mod rewrite rule to change urls like: http://www.site.com/play/4435
I'm looking for a small library to play, merge and change pitch for .wav
I am trying to play video without showing controls (volume and other buttons) but
Usually I hear about code working under things apart from IE but Ive got

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.