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

How to perform database migration after Casdoor update? #2915

Closed
netandreus opened this issue Apr 30, 2024 · 2 comments
Closed

How to perform database migration after Casdoor update? #2915

netandreus opened this issue Apr 30, 2024 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@netandreus
Copy link
Contributor

I just updated my Casdoor from v1.403.0 to v1.416.0. After restart these errors appears:

[xorm] [warn]  2024/04/30 12:03:20.308087 Table user has column is_global_admin but struct has not related field
[xorm] [warn]  2024/04/30 12:03:20.329211 Table model has column is_enabled but struct has not related field
[xorm] [warn]  2024/04/30 12:03:20.334764 Table adapter has column is_enabled but struct has not related field
[xorm] [warn]  2024/04/30 12:03:20.337739 Table enforcer has column is_enabled but struct has not related field
[xorm] [warn]  2024/04/30 12:03:20.382121 Table cert has column authority_public_key but struct has not related field
[xorm] [warn]  2024/04/30 12:03:20.382129 Table cert has column authority_root_public_key but struct has not related field
[xorm] [warn]  2024/04/30 12:03:20.419334 Table subscription column user db type is MEDIUMTEXT, struct type is VARCHAR(100)
[xorm] [warn]  2024/04/30 12:03:20.419368 Table subscription has column start_date but struct has not related field
[xorm] [warn]  2024/04/30 12:03:20.419372 Table subscription has column end_date but struct has not related field
[xorm] [warn]  2024/04/30 12:03:20.419374 Table subscription has column duration but struct has not related field
[xorm] [warn]  2024/04/30 12:03:20.419377 Table subscription has column is_enabled but struct has not related field
[xorm] [warn]  2024/04/30 12:03:20.419380 Table subscription has column submitter but struct has not related field
[xorm] [warn]  2024/04/30 12:03:20.419382 Table subscription has column approver but struct has not related field
[xorm] [warn]  2024/04/30 12:03:20.419385 Table subscription has column approve_time but struct has not related field
[xorm] [warn]  2024/04/30 12:03:20.423435 Table plan has column price_per_month but struct has not related field
[xorm] [warn]  2024/04/30 12:03:20.423444 Table plan has column price_per_year but struct has not related field
[xorm] [warn]  2024/04/30 12:03:20.430583 Table pricing has column submitter but struct has not related field
[xorm] [warn]  2024/04/30 12:03:20.430595 Table pricing has column approver but struct has not related field
[xorm] [warn]  2024/04/30 12:03:20.430599 Table pricing has column approve_time but struct has not related field
[xorm] [warn]  2024/04/30 12:03:20.430602 Table pricing has column state but struct has not related field

May be this refers to database schema schanges. How can I update Casdoor's database schema from console? Is there some migrations for this?

@casbin-bot
Copy link
Contributor

@casbin-bot casbin-bot added the enhancement New feature or request label Apr 30, 2024
@hsluoyz
Copy link
Member

hsluoyz commented Apr 30, 2024

@netandreus we only provide support for latest version. And this community doesn't provide support for data migration. Contact a third-party support if needed.

@hsluoyz hsluoyz closed this as completed Apr 30, 2024
@hsluoyz hsluoyz added question Further information is requested and removed enhancement New feature or request labels Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants