Skip to content

Instantly share code, notes, and snippets.

@fieldju
Created July 23, 2012 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fieldju/3166455 to your computer and use it in GitHub Desktop.
Save fieldju/3166455 to your computer and use it in GitHub Desktop.
create table RebuilderProcess (
id integer not null auto_increment,
finsihDTTM datetime,
hql varchar(255),
lastCompleted integer,
lastUpdatedDTTM datetime,
log TEXT,
numberCompleted integer,
startDTTM datetime not null,
status varchar(255),
totalNumberToProcess integer,
primary key (id)
) ENGINE=InnoDB;
create table RebuilderProcess_failedIds (
RebuilderProcess_id integer not null,
failedIds integer
) ENGINE=InnoDB;
alter table RebuilderProcess_failedIds
add index FKB532FA6358C189E (RebuilderProcess_id),
add constraint FKB532FA6358C189E
foreign key (RebuilderProcess_id)
references RebuilderProcess (id);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment