On Tue, Feb 26, 2019 at 2:59 PM Simon Urli <[email protected]> wrote: > > > > On 26/02/2019 14:49, Marius Dumitru Florea wrote: > > +1, but since you're adding a new table maybe it's a good idea to have a > > backlink **type** column. I'm thinking that there are multiple ways in > > which 2 entities can be linked: wiki syntax link, image syntax, parameter > > of a macro call, etc. Notice that I mentioned entities. Maybe we shouldn't > > limit this table to wiki pages. Here's an example: you put a link to an > > attachment in the value of an object property. This means the object > > property is linked to the attachment.
I think this improvement can come later since: * you will always need a field with the document reference anyway to find all the entry related to a document you are currently refactoring, you really need to know the type only when you actually start modify the document so new fields can be added to the table later without breaking anything * we don't currently register backlink for attachments or inside xobject properties so those new fields (if really needed) can be discussed when adding support for those > > So you would have: > - sourceType > - targetType > > to identify precisely what this backlink represents? > In that case shouldn't we put it in link table too? > > > > Thanks, > > Marius > > > > -- > Simon Urli > Software Engineer at XWiki SAS > [email protected] > More about us at http://www.xwiki.com -- Thomas Mortagne

