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

[4.1] Fix wrong sequence next values in PostgreSQL installation SQL scripts #37154

Conversation

richard67
Copy link
Member

Pull Request for Issue # .

Summary of Changes

This pull request (PR) fixes the next sequence values in PostgreSQL installation SQL scripts which have been forgotten to change when new records for the task scheduler were added with PR #35143 .

Some more wrong values from that PR e.g. for the assets table have already been fixed by someone with some other PR.

Testing Instructions

Code review by someone who knows how sequences work on PostgreSQL, or make a new installation using a PostgreSQL database and then try to insert new records into tables "#__action_logs_extensions" or "#__action_log_config".

Actual result BEFORE applying this Pull Request

Inserting a new record fails with error about duplicate primary key, e.g.:

ERROR: duplicate key value violates unique constraint "j4ux0_action_logs_extensions_pkey" DETAIL: Key (id)=(19) already exists.

Expected result AFTER applying this Pull Request

Inserting a new record works, and the new ID has the right value.

Documentation Changes Required

None.

@roland-d
Copy link
Contributor

@richard67 This looks good to me.

@alikon
Copy link
Contributor

alikon commented Feb 27, 2022

I have tested this item ✅ successfully on 6187512


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37154.

@roland-d
Copy link
Contributor

I have tested this item ✅ successfully on 6187512

Looks good to me


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37154.

@richard67 richard67 changed the title [4.1] Fix wrong sequence next values in PostgreSQL installation SQL scripts [4.1] Fix wrong sequence next values in PostgreSQL installation SQL scripts Feb 27, 2022
@richard67
Copy link
Member Author

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37154.

1 similar comment
@richard67
Copy link
Member Author

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37154.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Feb 27, 2022
@richard67 richard67 added this to the Joomla 4.1.1 milestone Feb 27, 2022
@wilsonge wilsonge merged commit 136ba34 into joomla:4.1-dev Feb 27, 2022
@wilsonge
Copy link
Contributor

Thanks!

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Feb 27, 2022
@richard67 richard67 deleted the 4.1-dev-fix-wrong-sequence-next-value-for-postgresql branch February 28, 2022 07:32
@richard67
Copy link
Member Author

@wilsonge Do you think it could need some update SQL script to fix wrong sequences on update?

@wilsonge
Copy link
Contributor

I'm not sure. Obviously in an ideal world yes - but given it affects all existing sites not sure whether it's going to cause more pain that it's worth?

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

Successfully merging this pull request may close these issues.

5 participants