summaryrefslogtreecommitdiff
path: root/gentoobrowse-api/service/sql/maintenance/gitListCreate.sql
diff options
context:
space:
mode:
Diffstat (limited to 'gentoobrowse-api/service/sql/maintenance/gitListCreate.sql')
-rw-r--r--gentoobrowse-api/service/sql/maintenance/gitListCreate.sql10
1 files changed, 10 insertions, 0 deletions
diff --git a/gentoobrowse-api/service/sql/maintenance/gitListCreate.sql b/gentoobrowse-api/service/sql/maintenance/gitListCreate.sql
new file mode 100644
index 0000000..20ca804
--- /dev/null
+++ b/gentoobrowse-api/service/sql/maintenance/gitListCreate.sql
@@ -0,0 +1,10 @@
+CREATE TEMPORARY TABLE filelist AS
+SELECT
+ fl.repoid,
+ fl.status,
+ ft.filetypeid,
+ ft.updateOrder,
+ ft.phase,
+ (STRING_TO_ARRAY(fl.filename, '/')) pathparts
+FROM filelistraw fl, gentoobrowse.filetypes ft
+WHERE (STRING_TO_ARRAY(fl.filename, '/')) ~ ft.spec