bug_tracker::project_delete (public)

 bug_tracker::project_delete project_id

Defined in packages/bug-tracker/tcl/bug-tracker-procs.tcl

Delete a Bug Tracker project and all its data.

Parameters:
project_id (required)
Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 bug_tracker::install::package_uninstantiate bug_tracker::install::package_uninstantiate (private) bug_tracker::project_delete bug_tracker::project_delete bug_tracker::install::package_uninstantiate->bug_tracker::project_delete bug_tracker::bug::delete bug_tracker::bug::delete (public) bug_tracker::project_delete->bug_tracker::bug::delete db_exec_plsql db_exec_plsql (public) bug_tracker::project_delete->db_exec_plsql db_string db_string (public) bug_tracker::project_delete->db_string

Testcases:
No testcase defined.
Source code:
    #manually delete all bugs to avoid weird integrity constraints
    while { [set bug_id [db_string min_bug_id {}]] > 0 } {
        bug_tracker::bug::delete $bug_id
    }
    db_exec_plsql delete_project {}
Generic XQL file:
<fullquery name="bug_tracker::project_delete.min_bug_id">
    <querytext>
        select min(bug_id)
        from   bt_bugs
        where  project_id = :project_id
    </querytext>
</fullquery>
packages/bug-tracker/tcl/bug-tracker-procs.xql

PostgreSQL XQL file:
<fullquery name="bug_tracker::project_delete.delete_project">
    <querytext>
        select bt_project__delete(:project_id);
    </querytext>
</fullquery>
packages/bug-tracker/tcl/bug-tracker-procs-postgresql.xql

Oracle XQL file:
<fullquery name="bug_tracker::project_delete.delete_project">
    <querytext>
        begin
             bt_project.del(:project_id);
        end;
     </querytext>
</fullquery>
packages/bug-tracker/tcl/bug-tracker-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: