On Wednesday, January 14, 2015 at 8:59 PM, rpr...@sprypoint.com wrote:
Just wondering what might be some causes for Migrations not getting picked up? I have an issue with a completely fresh database and they don't get run.
--
You received this message because you are subscribed to the Google Groups "Activate Persistence Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to activate-persist...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Wednesday, January 14, 2015 at 9:03 PM, rpr...@sprypoint.com wrote:
It doesn't exist. After running it gets added with a single row."";"activateExampleContext";-1;-1
On Wednesday, January 14, 2015 at 3:59:49 PM UTC-4, rpr...@sprypoint.com wrote:Just wondering what might be some causes for Migrations not getting picked up? I have an issue with a completely fresh database and they don't get run.
--
Reflection.getAllImplementorsNames(List(classOf[Migration], context.getClass), classOf[Migration])
net.fwbrasil.activate.migration.ManualMigrationnet.fwbrasil.activate.migration.Migration$StorageVersionMigration$1package com.example.foo
import com.example.foo.activate.Entities._import com.example.foo.activate.activateExampleContext._import net.fwbrasil.activate.migration.Migrationimport org.joda.time.DateTime
class CreateSchemaMigration extends Migration {
def timestamp = 201225081211l
def up {
table[A] .createTable( _.column[String]("string"), _.column[DateTime]("date"))
table[B] .createTable( _.column[BigDecimal]("bigDecimal1"), _.column[BigDecimal]("bigDecimal2"), _.column[String]("string1"), _.column[String]("string2"), _.column[String]("string3"), _.column[String]("a"))
table[B] .addReference("a", table[Journal], "a_b_fk").ifNotExists
}
}