Skip to content

Commit

Permalink
Merge pull request openwebwork#2537 from drgrice1/text-default-expres…
Browse files Browse the repository at this point in the history
…sion

Use an "expression" to specify the `session` column default in the `key` table.
  • Loading branch information
somiaj authored Aug 27, 2024
2 parents 025cb62 + 532f255 commit 01732a2
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 01732a2

Please sign in to comment.