[SOLVED] How to massively change item state in mysql db

More
9 years 5 months ago - 9 years 5 months ago #55455 by gcprnet
On our site there are about 1500 articles that have the state "archived" that now need to be published. Since changing the state in backend (20 at a time takes about 20 seconds). I figured that I could change this in the MySQL database much easier:
Code:
UPDATE `prefix_content` SET `state` = '1' WHERE `state` = '2';
Can this be done like this, or is there anything els I need to be aware of?
Best Regards
Last edit: 9 years 5 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #55477 by ggppdk
Hello

you can do it ,

just after doing it,
- logout from backend,
- relogin and go to FLEXIcontent dashboard (backend home page) and click to update temporary data if you are asked


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #55516 by gcprnet
Thank you ggppdk, this helped me a lot
Best Regards

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.373 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline