-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
Error creating admin course #2536
Comments
What version of MySQL is that? Also, are you using the I believe that recent versions of MySQL do support default values for TEXT columns, but may be mistaken. However, the If MySQL still does not support default values for TEXT columns, then perhaps it is time to say that we stop supporting use of MySQL. |
From the MySQL docs (https://dev.mysql.com/doc/refman/8.4/en/data-type-defaults.html): This is permitted (literal default specified as expression):
This produces an error (literal default not specified as expression):
|
I am using MySQL Community Server 8.4.2 LTS and my database driver is |
@dlgin: I saw that too. That is why I suggested switching to the |
That does indeed resolve the issue. Thanks! |
…ey` table. MySQL requires that the default value for a `TEXT` column be written as an expression. See https://dev.mysql.com/doc/refman/8.4/en/data-type-defaults.html. MariaDB apparently works fine without this, but works fine with it as well. This fixes issue openwebwork#2536.
…ey` table. MySQL requires that the default value for a `TEXT` column be written as an expression. See https://dev.mysql.com/doc/refman/8.4/en/data-type-defaults.html. MariaDB apparently works fine without this, but works fine with it as well. This fixes issue openwebwork#2536.
The fix has been merged, so closing. |
On a fresh new install of 2.19 using MySQL Community Server v8.4, when attempting to create the admin course using the command
$WEBWORK_ROOT/bin/addcourse admin --db-layout=sql_single --users=$APP_ROOT/courses/adminClasslist.lst --professors=admin
I am getting the following error:I knew the installation instructions for 2.19 state that MariaDB is recommended but it also states that MySQL is ok to use. Is this error due to an incompatible database?
The text was updated successfully, but these errors were encountered: