
    alter table JBPM_ACTIVITY 
        drop 
        foreign key FK_NODE_BEHAV_DESCR;

    alter table JBPM_ACTIVITY 
        drop 
        foreign key FK_ACT_PROCESS;

    alter table JBPM_ACTIVITY 
        drop 
        foreign key FK_ACT_DEFTRANS;

    alter table JBPM_ACTIVITY 
        drop 
        foreign key FK_ACT_PARENT;

    alter table JBPM_ACTIVITY 
        drop 
        foreign key FK_ACTS_PROCESS;

    alter table JBPM_ACTIVITY 
        drop 
        foreign key FK_ACT_PROPS;

    alter table JBPM_ARGDESCRIPTOR 
        drop 
        foreign key FK_ARGDSCR_OPER;

    alter table JBPM_ARGDESCRIPTOR 
        drop 
        foreign key FK_OBJARG_DESCR;

    alter table JBPM_ARGDESCRIPTOR 
        drop 
        foreign key FK_ARGDESCR_DESCR;

    alter table JBPM_COMMENT 
        drop 
        foreign key FK7BD9C13586A745AD;

    alter table JBPM_DESCRIPTOR 
        drop 
        foreign key FK_DESCR_KEYDESCR;

    alter table JBPM_DESCRIPTOR 
        drop 
        foreign key FK_DESCR_VALDESCR;

    alter table JBPM_DESCRIPTOR 
        drop 
        foreign key FK_DESCR_ARG_REF;

    alter table JBPM_DESCRIPTOR 
        drop 
        foreign key FK_DESCR_PROPS;

    alter table JBPM_EVENT 
        drop 
        foreign key FK_EVENT_PROCESS;

    alter table JBPM_EVENT 
        drop 
        foreign key FK_EVENT_ACT;

    alter table JBPM_EVENT 
        drop 
        foreign key FK_EVENT_PROCDEF;

    alter table JBPM_EVENT 
        drop 
        foreign key FK_EVENT_TRANS;

    alter table JBPM_EVENT 
        drop 
        foreign key FK_EVENT_PROPS;

    alter table JBPM_EXCEPTHNDLR 
        drop 
        foreign key FK_EXHDLR_PROCESS;

    alter table JBPM_EXCEPTHNDLR 
        drop 
        foreign key FK_EXHDLR_EVENT;

    alter table JBPM_EXCEPTHNDLR 
        drop 
        foreign key FK_EXHDLR_ACT;

    alter table JBPM_EXCEPTHNDLR 
        drop 
        foreign key FK_EXHDLR_TRANS;

    alter table JBPM_EXECUTION 
        drop 
        foreign key FK_EXEC_PROCESS;

    alter table JBPM_EXECUTION 
        drop 
        foreign key FK_EXEC_ACT;

    alter table JBPM_EXECUTION 
        drop 
        foreign key FK_EXEC_PARENT;

    alter table JBPM_EXECUTION 
        drop 
        foreign key FK_EXEC_INSTANCE;

    alter table JBPM_EXECUTION 
        drop 
        foreign key FK_EXEC_TRANSORIG;

    alter table JBPM_EXECUTION 
        drop 
        foreign key FK_EXEC_SUPEREXEC;

    alter table JBPM_EXECUTION 
        drop 
        foreign key FK4837C6E47026E1F;

    alter table JBPM_HIST_ACTINST 
        drop 
        foreign key FK_HISTAI_ACT;

    alter table JBPM_HIST_ACTINST 
        drop 
        foreign key FK_HAI_HPI;

    alter table JBPM_HIST_PROCINST 
        drop 
        foreign key FK_HISTPI_PROCDEF;

    alter table JBPM_JOB 
        drop 
        foreign key FK_JOB_NODE;

    alter table JBPM_JOB 
        drop 
        foreign key FK_JOB_PRINST;

    alter table JBPM_JOB 
        drop 
        foreign key FK_TMR_EXECUTION;

    alter table JBPM_JOB 
        drop 
        foreign key FK_JOB_CMDDESCR;

    alter table JBPM_JPDL_ACTIVITY 
        drop 
        foreign key FK_ACT_EXCLDESCR;

    alter table JBPM_JPDL_ACTIVITY 
        drop 
        foreign key FK_ACT_JAVADESCR;

    alter table JBPM_JPDL_ACTIVITY 
        drop 
        foreign key FK_ACT_PARTSDESCR;

    alter table JBPM_JPDL_ACTIVITY 
        drop 
        foreign key FK_ACT_INVKOPER;

    alter table JBPM_JPDL_ACTIVITY 
        drop 
        foreign key FK_ACT_PARAMDESCR;

    alter table JBPM_JPDL_EXECUTION 
        drop 
        foreign key FKA5B37C91F3DBDB5E;

    alter table JBPM_JPDL_PROCDEF 
        drop 
        foreign key FK4D2898A820C24C68;

    alter table JBPM_LOB 
        drop 
        foreign key FK_LOB_PROCESS;

    alter table JBPM_OBJECTREF 
        drop 
        foreign key FK_OBJECTREF_EVENT;

    alter table JBPM_OBJECTREF 
        drop 
        foreign key FK_OBJREF_EVENT;

    alter table JBPM_OBJECTREF 
        drop 
        foreign key FK_OBJREF_EXHNDLR;

    alter table JBPM_OPERATION 
        drop 
        foreign key FK_OBJOPER_DESCR;

    alter table JBPM_OPERATION 
        drop 
        foreign key FK_OPER_DESC;

    alter table JBPM_PROCESS 
        drop 
        foreign key FK_PROCDEF_INITIAL;

    alter table JBPM_PROCESS 
        drop 
        foreign key FK_PROCDEF_PROPS;

    alter table JBPM_TIMERDEF 
        drop 
        foreign key FK_TMRDEF_PROCESS;

    alter table JBPM_TIMERDEF 
        drop 
        foreign key FK_TMRDEF_ACT;

    alter table JBPM_TRANSITION 
        drop 
        foreign key FK_TRANS_PROCDEF;

    alter table JBPM_TRANSITION 
        drop 
        foreign key FK_TRANS_COND;

    alter table JBPM_TRANSITION 
        drop 
        foreign key FK_TRANS_DST;

    alter table JBPM_TRANSITION 
        drop 
        foreign key FK_TRANS_SRC;

    alter table JBPM_TRANSITION 
        drop 
        foreign key FK4FF269FD5B03CD3;

    alter table JBPM_TRANSITION 
        drop 
        foreign key FK4FF269FFC35DF40;

    alter table JBPM_TRANSITION 
        drop 
        foreign key FK_TRANS_PROPS;

    alter table JBPM_VARIABLE 
        drop 
        foreign key FK_VAR_PROCINST;

    alter table JBPM_VARIABLE 
        drop 
        foreign key FK_VAR_LOB;

    alter table JBPM_VARIABLE 
        drop 
        foreign key FK_VAR_EXECUTION;

    alter table JBPM_VARIABLEDEF 
        drop 
        foreign key FK_VARDEF_PROCESS;

    alter table JBPM_VARIABLEDEF 
        drop 
        foreign key FK_VARDEF_ACT;

    alter table JBPM_VARIABLEDEF 
        drop 
        foreign key FK_VARDEF_INDES;

    alter table ParticipantImpl 
        drop 
        foreign key FK_PART_SWIMLANE;

    alter table ParticipantImpl 
        drop 
        foreign key FK_PART_TASK;

    alter table SwimlaneImpl 
        drop 
        foreign key FK_SWIMLANE_DEF;

    alter table TaskDefinitionImpl 
        drop 
        foreign key FK_TSK_SWIML_DEF;

    alter table TaskDefinitionImpl 
        drop 
        foreign key FK7E595B18496CBE65;

    alter table TaskDefinitionImpl 
        drop 
        foreign key FK_TSK_ASIG_DESCR;

    alter table TaskImpl 
        drop 
        foreign key FK_TASK_SWIML;

    alter table TaskImpl 
        drop 
        foreign key FK_TASK_EXEC;

    alter table TaskImpl 
        drop 
        foreign key FK_TASK_SUPERTASK;

    drop table if exists JBPM_ACTIVITY;

    drop table if exists JBPM_ARGDESCRIPTOR;

    drop table if exists JBPM_COMMENT;

    drop table if exists JBPM_DESCRIPTOR;

    drop table if exists JBPM_EVENT;

    drop table if exists JBPM_EXCEPTHNDLR;

    drop table if exists JBPM_EXECUTION;

    drop table if exists JBPM_HIST_ACTINST;

    drop table if exists JBPM_HIST_PROCINST;

    drop table if exists JBPM_JOB;

    drop table if exists JBPM_JPDL_ACTIVITY;

    drop table if exists JBPM_JPDL_EXECUTION;

    drop table if exists JBPM_JPDL_PROCDEF;

    drop table if exists JBPM_LOB;

    drop table if exists JBPM_OBJECTREF;

    drop table if exists JBPM_OPERATION;

    drop table if exists JBPM_PROCESS;

    drop table if exists JBPM_TIMERDEF;

    drop table if exists JBPM_TRANSITION;

    drop table if exists JBPM_VARIABLE;

    drop table if exists JBPM_VARIABLEDEF;

    drop table if exists JBPM_WIREPROPS;

    drop table if exists ParticipantImpl;

    drop table if exists SwimlaneDefinitionImpl;

    drop table if exists SwimlaneImpl;

    drop table if exists TaskDefinitionImpl;

    drop table if exists TaskImpl;
