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

SQL Schema for players.conditions don't work on MySQL, only on MariaDB #31

Open
1 task done
macvirii opened this issue Nov 19, 2023 · 0 comments
Open
1 task done
Labels
documentation Improvements or additions to documentation invalid This doesn't seem right Status: Pending Test

Comments

@macvirii
Copy link

Priority

Medium

Area

App

What OS are you seeing the problem on?

Linux

Browser

Chrome

What happened?

Per MySQL documentation (https://dev.mysql.com/doc/refman/8.0/en/blob.html) 'BLOB and TEXT columns cannot have DEFAULT values.

So this line on the schema is invalid.
ALTER TABLE players CHANGE conditions conditions BLOB NOT NULL DEFAULT '';

My solution was using MariaDB, where you can define a default for BLOB types.

For this, probably should drop the requirement about MySQL and specify that it needs to run on MariaDB

Code of Conduct

  • I agree to follow this project's Code of Conduct
@github-actions github-actions bot added documentation Improvements or additions to documentation invalid This doesn't seem right Status: Pending Test labels Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation invalid This doesn't seem right Status: Pending Test
Projects
None yet
Development

No branches or pull requests

1 participant