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

[BUG] Using old jauth.db with jcommunity upgrade #816

Closed
jlstanus opened this issue Mar 21, 2018 · 5 comments
Closed

[BUG] Using old jauth.db with jcommunity upgrade #816

jlstanus opened this issue Mar 21, 2018 · 5 comments
Assignees
Milestone

Comments

@jlstanus
Copy link

Hello,

I'm testing 3.2pre with my existing projects under LWC 3.1 and 3.2 before jcommunity upgrade.

As mentionned in issues docker-lizmap, we cannot use the lizmap_var directory created with an old version of LWC.

If we have hundrerd users in jauth.db, we need a tool to (auto-) convert the old to the new.

So, how to export from old and import in the new.

JLS

@jlstanus jlstanus changed the title [BUG] Using jauth.db with jcommunity upgrade [BUG] Using old jauth.db with jcommunity upgrade Mar 21, 2018
@rldhont rldhont added this to the 3.2 milestone Mar 22, 2018
@rldhont rldhont added the jelix label Mar 22, 2018
@jlstanus
Copy link
Author

jlstanus commented Mar 27, 2018

This SQL has fixed the problem of old jauth.db with existing users.

I have simply added the new fields in jlx_user :

ALTER TABLE jlx_user ADD status INTEGER DEFAULT '';
ALTER TABLE jlx_user ADD keyactivate VARCHAR(50) DEFAULT '';
ALTER TABLE jlx_user ADD request_date datetime DEFAULT '';
ALTER TABLE jlx_user ADD create_date datetime DEFAULT '';
UPDATE jlx_user SET status = 1;
UPDATE jlx_user SET create_date = '2018-03-27';

I m not sure the 2 last lines are mandatory

Then, i replace (empty/blank) new version jauth.db by the old one edited with the above sql.

@laurentj laurentj self-assigned this Mar 30, 2018
@rldhont rldhont added the bug label Jun 22, 2018
@rldhont
Copy link
Collaborator

rldhont commented Jul 5, 2018

@laurentj this issue still remains ?

@rldhont
Copy link
Collaborator

rldhont commented Jul 6, 2018

@jlstanus if you use a normal upgrade from 3.1 to 3.2, the database jauth.db will be updated.

@rldhont rldhont closed this as completed Jul 6, 2018
@laurentj
Copy link
Collaborator

laurentj commented Jul 6, 2018

@jlstanus We cannot reproduce the issue. If it still remain, please provide a full list of steps to help us to reproduce the issue.

@jlstanus
Copy link
Author

jlstanus commented Jul 6, 2018

Now it's ok.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants