score:1
The solution I ended up with:
- I write new SQL as evolution scripts.
- I copy paste the SQL from the evolution script to a psql console to test it on my local postgresql db.
- With my local database updated, I run the Slick code generator to get an up to date Tables.scala.
- I revert the database changes from my local database with the down script in the evolution (or just by hand).
The next time I run my application, the evolution runs and updates my db. This works pretty well, now that I am used to the process.
Source: stackoverflow.com
Related Query
- How do I combine Playframework evolutions with Slick Tables autogeneration?
- How to apply manually evolutions in tests with Slick and Play! 2.4
- slick 3.2 - how to define an "abstract" trait with tables and queries definitions but no concrete profile?
- How to make aggregations with slick
- How can I handle a > 22 column table with Slick using nested tuples or HLists?
- How to use an Akka Streams SourceQueue with PlayFramework
- How to http post with an empty body request using WS API in Playframework 2 / Scala?
- How to write dynamic SQL queries with sql""" interpolation in slick
- How can I combine the typeclass pattern with subtyping?
- Slick outer join with multiple tables
- In Scala, how would I combine event driven programming with a functional approach?
- How can I create a custom column type with Typesafe Slick in Scala?
- How can I roll back an integration test with Slick 3 + Specs2?
- How to use Slick's mapped tables with foreign keys?
- How do you create a Playframework 2.0 Form with a field that is conditionally required?
- How to configure Slick 3.0.0 for Postgres DB (either with Hikari or without) Typesafe Play conf
- How can I combine fluent interfaces with a functional style in Scala?
- How can I combine a tuple of values with a tuple of functions?
- Slick 3: How to implement repository pattern with transactions?
- How do I return an auto generated ID using Slick plain SQL with SQL Server
- Create a MySQL connection in Playframework with slick
- Slick nested outer joins with many-to-many tables
- Slick 3.0.0 - How to sortBy on a query with joinLeft
- How can I combine shared tests with fixtures that require cleanup?
- How do I write slick table definitions with nullable columns?
- Slick codegen & tables with > 22 columns
- How to query an optional column value with a fallback in Slick 3.x
- want to know better way of joining tables with slick
- Slick - Inserting a row into two tables linked with an auto-incrementing key?
- Compare database schema with existing slick tables
More Query from same tag
- sortByKey() function in Spark Scala not working properly
- Decode case class, String or Int in circe
- Map builder recreates map from scratch each time?
- Scala SBT Cannot Add Dependency (geotrellis)
- spray app on Heroku: not able to find script created from stage command
- Working with Some() and Option() in Scala
- Spark Streaming throwing java.net.ConnectException
- Scala: common practice for writing foldLeft
- LDAP for authentication and authorization in Playframework 2.0
- Update case class from incomplete JSON with Argonaut or Circe
- Can the same Scala source file be compiled into class files containing different @ScalaSignature annotations?
- Scala overload constructor with mutable List of different type
- Shapeless HList polymorphic map with an argument
- Joda Marshalling/Unmarshalling in scala
- Scala, reflection of a concrete implementation of a parameterized trait
- How to setup implicit json convertion for spray+akka actor
- Can I build update query with variable fields without using plain SQL?
- Introducing scala into existing netbeans java project
- Regex program to find a Number with spaces and back slashes
- Scala trait and its methods’ parametrization
- spark scala compare dataframes having timestamp column
- Convert a Seq[String] to a case class in a typesafe way
- Computation with Futures avoiding Await method
- How to Build a Spray Project Created from Official Template
- Scala Parser Combinators <~ ~>ignores all previous statements
- Map to List[Tuple2] in Scala - removes duplicates?
- Matching with custom combinations/operators
- Lift Mapper - trait with OneToMany mapping
- How to set default type in Scala Numeric Generic Function?
- Deserializing a JSON dictionary