[#307] create SQL file on tracker deletion

Description

Summary:

Detailed description

Hi,

this probably counts as “clueless coworker workaround”: upon deletion of a Tracker, spew out an SQL file that can just be run through 「sudo -u postgres psql gforge」 to undelete it (or be deleted by a Site Admin), i.e. bring back all Tracker Items (Bugs/FRs) in it, custom fields, attachements, etc.

Better yet, spew out an import file once obergix’ importing solution works ☺ but an SQL file should be easier for now.

General Information
Submitted by:
Thorsten Glaser
Date Submitted: 2011-05-24 15:05
Last Modified by: Nobody
Last Modified: 2017-11-02 20:00
Permalink: https://fusionforge.org/tracker/a_follow.php/307
Actions
Monitor
Votes: 0/1 (0%)
Internal Fields
Data Type: Feature requests
Assigned to: Nobody (None)
State: Open
Priority: 1
Extra Fields
Resolution:
none
Difficulty:
Medium
Target release:
none
Follow-up tabs
Message  ↓
Date: 2011-05-25 08:02
Sender: Thorsten Glaser

Nice! Now to integrate that into the forge itself, so that it automatically creates them before actually deleting the tracker…

Date: 2011-05-24 17:48
Sender: Alain Peyrat

I had to "restore" trackers removed by mistake and I used the following attached script for that. Maybe it could be used as a starting point.

Attachments:
Size Name Date By Download
3 KiBoneshot_dump_tracker.php2011-05-24 17:48
Alain Peyrat
oneshot_dump_tracker.php

No related commits.

Field Old Value Date By
priority32018-04-22 09:01
Franck Villaume
Target release6.02015-01-04 15:25
Franck Villaume
detailsHi, this probably counts as “clueless coworker workaround”: upon deletion of a Tracker, spew out an SQL file that can just be run through 「sudo -u postgres psql gforge」 to undelete it (or be deleted by a Site Admin), i.e. bring back all Tracker Items (Bugs/FRs) in it, custom fields, attachements, etc. Better yet, spew out an import file once obergix’ importing solution works ☺ but an SQL file should be easier for now.2012-10-28 09:56
Franck Villaume
Target release5.1.x2012-10-28 09:56
Franck Villaume
detailsHi, this probably counts as “clueless coworker workaround”: upon deletion of a Tracker, spew out an SQL file that can just be run through 「sudo -u postgres psql gforge」 to undelete it (or be deleted by a Site Admin), i.e. bring back all Tracker Items (Bugs/FRs) in it, custom fields, attachements, etc. Better yet, spew out an import file once obergix’ importing solution works ☺ but an SQL file should be easier for now.2011-05-25 08:02
Thorsten Glaser
File Added195: oneshot_dump_tracker.php2011-05-24 17:48
Alain Peyrat

No relations found.