Re: Is it possible to add rev_multilink to an existing property of a Class?
Ralf Schlatterbeck <[email protected]> Sat, 23 Dec 2023 09:06:02 +0100
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Dec 22, 2023 at 11:28:15PM +0100, Nagy Gabor wrote:
> Dear Roundup developers,
>
> My schema.py has for example a Class definition like this:
> issue = IssueClass(db, "issue", files = Multilink("file"), ...)
>
> And my issues already contains many multilinks to some files.
>
> Can I change the defintion in schema.py to
> issue = IssueClass(db, "issue", files = Multilink("file", rev_multilink="owner"), ...)
> without corrupting the database?
Yes. The rev_multilink feature doesn't change the db, it just tells the
database that we want to use the multilink also for navigating in the
reverse direction.
Still for every schema-change you want to have a backup.
> Regards and merry Christmas,
Also merry Christmas to you!
Ralf
--
Dr. Ralf Schlatterbeck Tel: +43/2243/26465-16
Open Source Consulting www: www.runtux.com
Reichergasse 131, A-3411 Weidling email: [email protected]