Forums / Setup & design / Versions: how to get rid of them?

Versions: how to get rid of them?

Author Message

Ted Striker

Thursday 26 August 2004 12:41:58 am

Hello there!

Here goes my question:

Can I disable the version system so that a unique article version exists for each article in database?

With versions my database grows like hell!! The site does not used this version storage ezpublish feature, cause there is not any work flow defined, so a single editor does it all.

There are php scripts to clean database, but not for 3.4.1 version yet and cleaning old versions one by one is a real pain in the....

Any ideas?? TIA

Can you feel it Mr. Anderson? Closing in on you? Oh I can, I really should thank you after all. It was, after all, it was your life that taught me the purpose of all life. Purpose of life is to end.

Bård Farstad

Thursday 26 August 2004 12:59:53 am

You can change this in content.ini. However the minimum ammount of versions are two, but that should probably do the trick.

# Define maximum versions can be managed. Use syntax
# VersionHistoryClass[class_id]=maximum_nr to specify value for particular
# classes. Otherwise, the value of DefaultVersionHistoryLimit will be used.
[VersionManagement]
DefaultVersionHistoryLimit=10
VersionHistoryClass[1]=5

--bård

Documentation: http://ez.no/doc

Ted Striker

Thursday 26 August 2004 9:10:15 am

Thanx Bård,

I set:

# Define maximum versions can be managed. Use syntax
# VersionHistoryClass[class_id]=maximum_nr to specify value for particular
# classes. Otherwise, the value of DefaultVersionHistoryLimit will be used.
[VersionManagement]
DefaultVersionHistoryLimit=2
VersionHistoryClass[1]=5

I guess that 2 versions will work just fine and the database will not grow too much.

Thanks again for the tip, I find more helpfull this forum than the book or the documentation :)

Can you feel it Mr. Anderson? Closing in on you? Oh I can, I really should thank you after all. It was, after all, it was your life that taught me the purpose of all life. Purpose of life is to end.

Bård Farstad

Thursday 26 August 2004 11:01:30 am

Ted, glad I could help.

If you find the answer to something which isn't in the documentation feel free to update the doc page on the subject. The documentation is editable by anyone which has an account here on ez.no.

--bård

Documentation: http://ez.no/doc