简体   繁体   中英

Playframework evolutions + SQL Server. Generate correct schema script?

I've been trying with no success to run evolutions + slick to generate schema for a MSQLServer database.

I am using Play 2.3.x, scala 2.11.6, slick, and SQLServer 2014.

I could make it connect as well, but the script which is generated contains lots of "errors" relates to data types, like the use of BOOLEAN and TIMESTAMP which are types that SQLServer does not use.

The script should use the types BIT instead of BOOLEAN, DATETIME instead of TIMESTAMP, and UNIQUEIDENTIFIER instead of UUID.

Does anyone know a workaround for that?

These datatypes and all specific to database so there is no workaround here. You have change the data types based on the selected database otherwise you will get the same error in another database as well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM