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

Flag_Status field in flag table appears to be unused #8278

Merged
merged 4 commits into from
Jan 24, 2023

Conversation

GeorgeMurad
Copy link
Contributor

  1. Issue: flag table's Flag_Status appears to be unused #8254

@@ -0,0 +1 @@
ALTER TABLE `flag` DROP COLUMN `Flag_status`;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since it's dropping a column that might have data and existing projects might not want to run it should go in cleanup patches (which need to be manually run after review) instead of new_patches (which get concatenated and into one big release patch)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay I will drop it under the cleanup patches then!

@driusan
Copy link
Collaborator

driusan commented Dec 16, 2022

Should this update raisinbread too?

@GeorgeMurad
Copy link
Contributor Author

GeorgeMurad commented Dec 16, 2022

@driusan I haven't seen any Flag_status field under raisinbread!

@driusan
Copy link
Collaborator

driusan commented Dec 16, 2022

You're dropping a column from the flag table so I assume the raisinbread flag table has data for it?

@GeorgeMurad
Copy link
Contributor Author

@driusan I am not sure, I have checked it and can't see any Flag_status related to raisinbread!

@driusan
Copy link
Collaborator

driusan commented Dec 16, 2022

It's in https://github.com/aces/Loris/blob/main/raisinbread/RB_files/RB_flag.sql.

I'm not sure what the preferred way to update it is, maybe @ridz1208 knows.

@GeorgeMurad
Copy link
Contributor Author

@ridz1208 What's your opinin for updating the Flag_status on https://raw.githubusercontent.com/aces/Loris/main/raisinbread/RB_files/RB_flag.sql ?

@ridz1208
Copy link
Collaborator

@GeorgeMurad last I checked there was a tools/exporters/db_data...(something)...php that will dump your current DB into the raisinbread directory. so basically, if you source RB, run your patch on it and run the tool script. you should see that the RB_flag.sql file has changed (sometimes other files change for whitespacing and stuff you can ignore those)

but yeah that should do it for you

@laemtl laemtl assigned driusan and kongtiaowang and unassigned driusan Dec 20, 2022
@driusan
Copy link
Collaborator

driusan commented Dec 20, 2022

@kongtiaowang I think your change looks like it's done in the last commit. Can you review and if it looks good assign to me to merge?

Copy link
Contributor

@kongtiaowang kongtiaowang left a comment

Choose a reason for hiding this comment

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

Hi @driusan this PR is ready for your to merge.

@driusan
Copy link
Collaborator

driusan commented Jan 23, 2023

@GeorgeMurad This needs to be rebased before I can merge it to make sure the required tests pass.

@GeorgeMurad GeorgeMurad reopened this Jan 23, 2023
@driusan driusan merged commit 132481b into aces:main Jan 24, 2023
@ridz1208 ridz1208 added this to the 25.0.0 milestone Mar 6, 2023
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.

4 participants