Skip to content

Commit

Permalink
Merge pull request #2538 from drgrice1/text-default-expression-hotfix
Browse files Browse the repository at this point in the history
Use an "expression" to specify the `session` column default in the `key` table. (hotfix of #2537)
  • Loading branch information
somiaj committed Aug 27, 2024
2 parents 1023992 + df3d00e commit 16de8df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/WeBWorK/DB/Record/Key.pm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ BEGIN {
user_id => { type => "VARCHAR(100) NOT NULL", key => 1 },
key => { type => "TEXT" },
timestamp => { type => "BIGINT" },
session => { type => "TEXT NOT NULL DEFAULT '{}'" },
session => { type => "TEXT NOT NULL DEFAULT ('{}')" },
);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/WeBWorK/DB/Record/LTILaunchData.pm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ BEGIN {
state => { type => "VARCHAR(200) NOT NULL", key => 1 },
nonce => { type => "TEXT NOT NULL" },
timestamp => { type => "BIGINT" },
data => { type => "TEXT NOT NULL DEFAULT '{}'" }
data => { type => "TEXT NOT NULL DEFAULT ('{}')" }
);
}

Expand Down

0 comments on commit 16de8df

Please sign in to comment.