Changes for oTree 5 + MySQL

19 views
Skip to first unread message

Govert Buijs

unread,
Dec 2, 2021, 11:45:42 AM12/2/21
to oTree help & discussion
When testing the '5' version (5.6.0) with MySQL, resetting the DB failed.
Seems VARCHAR needs a length when using MySQL..
To get it working, i needed to change 2 lines (add the lengths).

models/session.py
    label = Column(st.String(300), nullable=True)
models/player.py
    _role = Column(st.String(10000), nullable=False, default='')

Chris @ oTree

unread,
Dec 2, 2021, 11:58:55 AM12/2/21
to Govert Buijs, oTree help & discussion
Hi, Thank you for posting this, although note that oTree on MySQL is not tested or supported. I wouldn’t be surprised if there are other issues also….

Sent from my phone

On Dec 2, 2021, at 8:45 AM, Govert Buijs <bu...@rsm.nl> wrote:

When testing the '5' version (5.6.0) with MySQL, resetting the DB failed.
--
You received this message because you are subscribed to the Google Groups "oTree help & discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to otree+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/otree/789eca0d-b53c-46b6-9155-590e8a635ca0n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages