Skip to content

Commit edf2bbb

Browse files
committed
Reorder columns to ensure that export command works
1 parent 836d8db commit edf2bbb

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

server/dbutil/dbutil.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@ const (
5454
// TODO: consider a unique constrain to avoid importing identical pairs
5555
createFilePairs = `CREATE TABLE IF NOT EXISTS file_pairs (
5656
id <INCREMENT_TYPE>,
57-
blob_id_a TEXT, repository_id_a TEXT, commit_hash_a TEXT, path_a TEXT, content_a TEXT, hash_a TEXT, uast_a <BLOB_TYPE>,
58-
blob_id_b TEXT, repository_id_b TEXT, commit_hash_b TEXT, path_b TEXT, content_b TEXT, hash_b TEXT, uast_b <BLOB_TYPE>,
57+
blob_id_a TEXT, repository_id_a TEXT, commit_hash_a TEXT, path_a TEXT, content_a TEXT, hash_a TEXT,
58+
blob_id_b TEXT, repository_id_b TEXT, commit_hash_b TEXT, path_b TEXT, content_b TEXT, hash_b TEXT,
5959
score DOUBLE PRECISION, diff TEXT, experiment_id INTEGER,
60+
uast_a <BLOB_TYPE>, uast_b <BLOB_TYPE>,
6061
PRIMARY KEY (id),
6162
FOREIGN KEY(experiment_id) REFERENCES experiments(id))`
6263
createAssignments = `CREATE TABLE IF NOT EXISTS assignments (

0 commit comments

Comments
 (0)