Skip to content

Commit

Permalink
Merge pull request #82 from sfu-cl-lab/remove-rnid-column
Browse files Browse the repository at this point in the history
Removed the "rnid" column from the lattice_membership table.
  • Loading branch information
oschulte authored Aug 31, 2018
2 parents 94674d8 + 425117e commit 7db3bb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public static void init() throws SQLException {
maxNumberOfMembers = firstSets.size();
Statement st = con2.createStatement();

st.execute("create table if not exists lattice_membership (name VARCHAR(398), member VARCHAR(398), rnid VARCHAR(199), PRIMARY KEY (name, member));");
st.execute("create table if not exists lattice_membership (name VARCHAR(398), member VARCHAR(398), PRIMARY KEY (name, member));");
st.execute("create table if not exists lattice_rel (parent VARCHAR(398), child VARCHAR(398), removed VARCHAR(199), rnid VARCHAR(199), PRIMARY KEY (parent, child));");
st.execute("create table if not exists lattice_set (name VARCHAR(199), length INT(11), PRIMARY KEY (name, length));");

Expand Down
4 changes: 2 additions & 2 deletions factorbase/src/main/resources/scripts/model_manager.sql
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ SELECT DISTINCT lattice_membership.name AS Rchain, Fid AS node
lattice_membership,
RNodes_BN_Nodes
WHERE
RNodes_BN_Nodes.rnid = lattice_membership.rnid
RNodes_BN_Nodes.rnid = lattice_membership.member
ORDER BY lattice_membership.name;

ALTER TABLE Path_BN_nodes ADD INDEX `HashIndex` (`Rchain`,`node`); /* May 7*/
Expand Down Expand Up @@ -127,7 +127,7 @@ from
2Nodes,
lattice_membership
where
lattice_membership.rnid = RNodes.rnid
lattice_membership.member = RNodes.rnid
and RNodes.pvid1 = 2Nodes.pvid1
and RNodes.pvid2 = 2Nodes.pvid2
and RNodes.TABLE_NAME = 2Nodes.TABLE_NAME
Expand Down

0 comments on commit 7db3bb5

Please sign in to comment.