Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce support for Microsoft SQL Server #66

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ libraryDependencies ++= {
"mysql" % "mysql-connector-java" % "8.0.18", // TODO verify use of mysql-connector over explicit mariaDB connector instead
"org.postgresql" % "postgresql" % "42.2.5",
"org.xerial" % "sqlite-jdbc" % "3.25.2",
"com.microsoft.sqlserver" % "mssql-jdbc" % "9.2.1.jre11",
"org.playframework.anorm" %% "anorm" % "2.6.4",
"com.typesafe.play" %% "play-json" % "2.6.12",
"com.pauldijou" %% "jwt-play" % "4.1.0",
Expand Down
2 changes: 1 addition & 1 deletion conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ play.assets.cache."/public/app/"="no-cache"

# Play evolutions
# ~~~~~
play.evolutions.useLocks=true
play.evolutions.useLocks=false
play.evolutions.autoApply=true

# Play startup bindings
Expand Down
3 changes: 2 additions & 1 deletion conf/evolutions/default/6.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@
-- payload is currently limited to approx 5K!

-- 2020-09-13: first encountered JSON payload with 5391B in production ==> double the field size
-- 2021-03-11: MSSqlServer limits varchar to 8000, so shrink field size.
create table input_event (
id varchar(36) not null primary key,
event_source varchar(50) not null,
event_type int not null,
event_time timestamp not null,
user_info varchar(100),
input_id varchar(36) not null,
json_payload varchar(10000)
json_payload varchar(8000)
);

# --- !Downs
Expand Down