Skip to content

Commit

Permalink
get filename and file from moduleid
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo committed Nov 30, 2015
1 parent ae1a82e commit a06ba59
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cnxarchive/sql/get-file-by-moduleid.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
-- ###
-- Copyright (c) 2015, Rice University
-- This software is subject to the provisions of the GNU Affero General
-- Public License version 3 (AGPLv3).
-- See LICENCE.txt for details.
-- ###

-- arguments: moduleid:string, version:string
SELECT mf.filename, f.file
FROM
module_files AS mf
LEFT JOIN files f ON mf.fileid = f.fileid
LEFT JOIN modules m ON mf.module_ident = m.module_ident
WHERE
m.moduleid = %(moduleid)s
--AND
-- concat_ws('.', m.major_version, m.minor_version) = %(version)s

0 comments on commit a06ba59

Please sign in to comment.