Skip to content

Commit

Permalink
Merge pull request oltpbenchmark#35 from alendit/ch_ddl_fix
Browse files Browse the repository at this point in the history
Added cascade delete to the primary key in chbenchmark tables
  • Loading branch information
dedcode committed Apr 29, 2013
2 parents f78b665 + 52fa8bb commit 431cda3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ create table region (
create table nation (
n_nationkey int not null,
n_name char(25) not null,
n_regionkey int not null references region(r_regionkey),
n_regionkey int not null references region(r_regionkey) ON DELETE CASCADE,
n_comment char(152) not null,
PRIMARY KEY ( n_nationkey )
);
Expand All @@ -21,7 +21,7 @@ create table supplier (
su_suppkey int not null,
su_name char(25) not null,
su_address varchar(40) not null,
su_nationkey int not null references nation(n_nationkey),
su_nationkey int not null references nation(n_nationkey) ON DELETE CASCADE,
su_phone char(15) not null,
su_acctbal numeric(12,2) not null,
su_comment char(101) not null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ create table region (
create table nation (
n_nationkey int not null,
n_name char(25) not null,
n_regionkey int not null references region(r_regionkey),
n_regionkey int not null references region(r_regionkey) ON DELETE CASCADE,
n_comment char(152) not null,
PRIMARY KEY ( n_nationkey )
);
Expand All @@ -21,7 +21,7 @@ create table supplier (
su_suppkey int not null,
su_name char(25) not null,
su_address varchar(40) not null,
su_nationkey int not null references nation(n_nationkey),
su_nationkey int not null references nation(n_nationkey) ON DELETE CASCADE,
su_phone char(15) not null,
su_acctbal numeric(12,2) not null,
su_comment char(101) not null,
Expand Down

0 comments on commit 431cda3

Please sign in to comment.