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

EZP-30797: Password expiry db script #794

Merged
merged 2 commits into from
Oct 7, 2019
Merged

Conversation

DominikaK
Copy link
Contributor

Question Answer
JIRA Ticket ezsystems/ezpublish-kernel#2742
Versions all

Follow-up to #779, to merge info all branches: adds db update script to enable password expiry options.

@michalmilc90 michalmilc90 self-assigned this Oct 3, 2019
@DominikaK DominikaK requested a review from adamwojs October 3, 2019 11:11
@adamwojs adamwojs requested a review from alongosz October 3, 2019 11:52
Run the following script to update the database to cover new password recovery options:

``` sql
UPDATE ezuser SET password_updated_at = UNIX_TIMESTAMP();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this does not work on PostgreSQL :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Care to provide what does work? ;)

Run the following script to update the database to cover new password recovery options:

``` sql
UPDATE ezuser SET password_updated_at = UNIX_TIMESTAMP();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to create password_updated_at column first by executing:
a) https://github.com/ezsystems/ezpublish-kernel/blob/master/data/update/mysql/dbupdate-7.5.4-to-7.5.5.sql for MySQL
b) https://github.com/ezsystems/ezpublish-kernel/blob/master/data/update/postgres/dbupdate-7.5.4-to-7.5.5.sql for Postgres

Hmmm, maybe we should include this statement into update scripts as well (as it database specific)?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DominikaK DominikaK merged commit e5a137a into 2.5 Oct 7, 2019
DominikaK pushed a commit that referenced this pull request Oct 7, 2019
DominikaK pushed a commit that referenced this pull request Oct 7, 2019
DominikaK pushed a commit that referenced this pull request Oct 7, 2019
@DominikaK DominikaK deleted the password-expiry-db-script branch October 7, 2019 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants