Re: [Tiki-devel] Changing page version number

Volker Wysk <post-hhF2Jplw28UoZk/[email protected]>
Newsgroups gmane.comp.cms.tiki.devel
Message-ID <[email protected]>
Am Montag, dem 01.08.2022 um 15:42 +0100 schrieb Jonny Bradley via TikiWiki-
devel:
> Hi Volker
> 
> Really couldn't say without trying it, i'd imaging you'd need to delete
> the record in `tiki_history` for the existing version 1 first, 

So tiki_pages and tiki_history are the only involved tables. Meanwhile I've
figured as much, but I couldn't be sure.

I'm deleting the records for version 1, in tiki_pages and tiki_history, with
the remove_version() function from histlib. So I don't need to tidy up
version 1 in tiki_history.

> then you might need to flush the tiki caches, 

This is an important point, which is new to me. 

Judging from the sources in lib/cache, there are three caches: opcode_cache,
memcache and redis. I'm going to flush them all.

> can you try on a test version?

Yes, that's what I'm doing.

> Good luck!

Thanks!  :-)

Volker


> 
> jonny
> 
> 
> 
> 
> > On 31 Jul 2022, at 18:11, Volker Wysk <post-hhF2Jplw28UoZk/[email protected]> wrote:
> > 
> > Hi
> > 
> > Could it be as simple as:
> > 
> >   update tiki_pages set version = 1 
> >   where pageName = "mypage" and version = 2;
> > 
> > Or would that result in unexpected behavior?
> > Cheers, Volker
> > 
> > 
> > Am Sonntag, dem 31.07.2022 um 18:52 +0200 schrieb Volker Wysk:
> > > Hi!!
> > > 
> > > Is it possible to change the version number of a wiki page, which has one
> > > unique version with the number 2, to number 1?
> > > 
> > > I guess I would have to directly manipulate the database. Could some kind
> > > Tiki hacker show me how this is to be done?
> > > 
> > > I'm afraid I would break things, since I have hardly any experience.
> > > 
> > > Cheers,
> > > Volker
> > > _______________________________________________
> > > TikiWiki-devel mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
> > _______________________________________________
> > TikiWiki-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
> 
> 
> _______________________________________________
> TikiWiki-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel

_______________________________________________
TikiWiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIyBAABCgAdFiEE6QXGh82Ov3+2nrxp+K4ydFOsHoUFAmLn8SAACgkQ+K4ydFOs
HoUDNA/1HkspkLC9ICOiGDhww9p4a4oxl/3ZdHohFr11Z/Xl8HhC02URaXQVl8SO
1JIGFMXWzRGRgZKN3PpRHSMgElZy4nmQxQAXRgrSWkhntMeKLa7oUl0ZWCOYvXro
eQ2rpRY5YhEZbCZ0HJJiV6P546psZ65XKtIhI3124Gu4dMPL9RZ4tkiO9KRxEt+y
hXQDkhJKJc7Vu+HuR0dgnzs82b+2i4E/zW9fLrg2QgsQh1GS3sKU/EpzYoV3T2GQ
Ry1JR1Ws4G/zL5AzGHbSoU8+ZPN8R0M1XMPbc7MsawYOBDzDs2TnwtwMSWnW7U25
GJdV0ToNz44PwaQu/mmWUxrfdbqR0xWdgBdFT1k0I7hrkdayFNwsIg4Fku5+Ff3v
9tfjVbIEBCMwSeqtwYoMx6Gli0U2RsifSAL4KjEkrRZb8b/qKkJGBUhnLI9MANEW
Prwd2nSRxDDg/6LXDbs9FK5tiQiY1vBpXzKmGTgDWGDKkErfD+CoxV4/q3EOdJMS
wQTHsP0WAPTJs+cNHVxJiTUe4ECBeEYehu8c+H85GmDzm2B3j7qPfhZ412fmjYWl
ga/Ys+7YlNXLwHpZldIoCmZcASvBreB5W8bTSrtVUMYg9I/nAKz6eVGIDt3IEt5s
AlCnv5FlJXrOvc6BEPiSdbGf+a7M+A0pE9DMXxZRm9Bc1OiFcQ==
=ofAd
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.