dbutils.py error: Unknown action autoupgrade #121

Open
opened 2024-03-26 17:30:31 +00:00 by JustDaniMusic · 6 comments

Hi! I was trying to upgrade all of my database tables and based on what it said in artemis/docs/game_specific_info.md you would be able to do this using

python dbutils.py autoupgrade

But upon running the command, is returns with this:

| Database | Unknown action autoupgrade
image

There is also no possible option finding it out using the --help/-h argument.
image

Good to know:
I'm using the development branch
I am using MariaDB instead of MySQL (That was mentioned in INSTALL_LINUX.md)

Hi! I was trying to upgrade all of my database tables and based on what it said in artemis/docs/game_specific_info.md you would be able to do this using python dbutils.py autoupgrade But upon running the command, is returns with this: | Database | Unknown action autoupgrade ![image](/attachments/b8c4e2f6-88e7-49d3-87e9-de34fee1c783) There is also no possible option finding it out using the --help/-h argument. ![image](/attachments/cc37632f-541f-4cdb-aed8-169eeec03370) Good to know: I'm using the development branch I am using MariaDB instead of MySQL (That was mentioned in INSTALL_LINUX.md)
Collaborator

Hello JustDaniMusic,

If you look at the latest commit i pushed to develop, the documentation has been updated

The autoupgrade function is no longer present as the project now uses alembic instead of the old upgrade/downgrade scripts.

See the reference here : 8b5825bec4

Thank you

Hello JustDaniMusic, If you look at the latest commit i pushed to develop, the documentation has been updated The autoupgrade function is no longer present as the project now uses alembic instead of the old upgrade/downgrade scripts. See the reference here : https://gitea.tendokyu.moe/Hay1tsme/artemis/commit/8b5825bec415107101506b880c89af77526a1cf6 Thank you
Midorica added the
seen
doc
labels 2024-04-08 13:55:14 +00:00
Author

Hi! Thanks for the response!

So I tried doing python dbutils.py upgrade

But then I get this error:
image

Does this have to do with artemis or is this an error on my end?

I'm not really good with databases to be honest.

Hi! Thanks for the response! So I tried doing `python dbutils.py upgrade` But then I get this error: ![image](/attachments/ab7e4fed-3d89-4807-aa08-0ba02b5e9f89) Does this have to do with artemis or is this an error on my end? I'm not really good with databases to be honest.
Collaborator

Did you follow exactly what i wrote in the documentation?
If you were on the old branch, you have to use python dbutils.py migrate and not python dbutils.py upgrade before.

Did you follow exactly what i wrote in the documentation? If you were on the old branch, you have to use ```python dbutils.py migrate``` and not ```python dbutils.py upgrade``` before.
Author

I did, and it still gives me the same error.

image

I did, and it still gives me the same error. ![image](/attachments/9ccd054a-7343-479e-9f26-c262715b55cf)
Collaborator

looking at your screenshot, everything should be fine

have you tried starting index.py after you did the upgrade command?

looking at your screenshot, everything should be fine have you tried starting index.py after you did the upgrade command?
Author

Yeah. I did! It boots fine. But the upgrade command still doesn't work to me. Same error.

Yeah. I did! It boots fine. But the upgrade command still doesn't work to me. Same error.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Hay1tsme/artemis#121
No description provided.