Skip to content
Open
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
4 changes: 2 additions & 2 deletions models/Grammars/SqlServerGrammar.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -852,11 +852,11 @@ component extends="qb.models.Grammars.BaseGrammar" singleton accessors="true" {
}

function typeJson( column ) {
return "NVARCHAR(MAX)";
return "JSON";
}

function typeJsonb( column ) {
return "NVARCHAR(MAX)";
return "JSON";
}

function typeLongText( column ) {
Expand Down
4 changes: 2 additions & 2 deletions tests/specs/Schema/SqlServerSchemaBuilderSpec.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ component extends="tests.resources.AbstractSchemaBuilderSpec" {
}

function json() {
return [ "CREATE TABLE [users] ([personalizations] NVARCHAR(MAX) NOT NULL)" ];
return [ "CREATE TABLE [users] ([personalizations] JSON NOT NULL)" ];
}

function jsonb() {
return [ "CREATE TABLE [users] ([personalizations] NVARCHAR(MAX) NOT NULL)" ];
return [ "CREATE TABLE [users] ([personalizations] JSON NOT NULL)" ];
}

function lineString() {
Expand Down
Loading