Project

General

Profile

Delete project - what happens internally

Added by Ivan Cenov about 13 years ago

What does happen when deleting projects?
What more is deleted besides the record in 'projects' table?


Replies (1)

RE: Delete project - what happens internally - Added by Mischa The Evil about 13 years ago

AFAIK everything that is tied to the project_id is deleted. Thus all the data, from all the project modules and project settings (issues, subtasks, forums, wiki, journals, versions, members, etc,).

See tests:
  • test_destroy (source:/trunk/test/unit/project_test.rb@11305#L182);
  • test_destroy_should_destroy_subtasks (source:/trunk/test/unit/project_test.rb@11305#L199);
  • test_destroying_root_projects_should_clear_data (source:/trunk/test/unit/project_test.rb@11305#L211);

for some more info.

    (1-1/1)