Skip to content

Commit

Permalink
bvfs: remove BVFS_FilenameId
Browse files Browse the repository at this point in the history
is it not needed anymore after the denormalization
  • Loading branch information
pstorz committed Apr 12, 2017
1 parent 4c27e75 commit 55580c1
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 10 deletions.
9 changes: 4 additions & 5 deletions src/cats/bvfs.h
Expand Up @@ -45,13 +45,12 @@ typedef enum {
typedef enum {
BVFS_Type = 0, /**< Could be D, F, V */
BVFS_PathId = 1,
BVFS_FilenameId = 2,

BVFS_Name = 3,
BVFS_JobId = 4,
BVFS_Name = 2,
BVFS_JobId = 3,

BVFS_LStat = 5, /**< Can be empty for missing directories */
BVFS_FileId = 6, /**< Can be empty for missing directories */
BVFS_LStat = 4, /**< Can be empty for missing directories */
BVFS_FileId = 5, /**< Can be empty for missing directories */

/* Only if File Version record */
BVFS_Md5 = 3,
Expand Down
1 change: 0 additions & 1 deletion src/cats/dml/0048_sql_bvfs_list_files
@@ -1,6 +1,5 @@
SELECT 'F',
T1.PathId,
-1 AS FilenameId,
File.Name,
File.JobId,
File.LStat,
Expand Down
1 change: 0 additions & 1 deletion src/cats/dml/0048_sql_bvfs_list_files.postgresql
@@ -1,6 +1,5 @@
SELECT TYPE,
PathId,
-1 AS FilenameId,
Name,
JobId,
LStat,
Expand Down
1 change: 0 additions & 1 deletion src/cats/mysql_queries.inc
Expand Up @@ -670,7 +670,6 @@ WHERE T1.JobTDate = Job.JobTDate
SQL_QUERY(
SELECT 'F',
T1.PathId,
-1 AS FilenameId,
File.Name,
File.JobId,
File.LStat,
Expand Down
1 change: 0 additions & 1 deletion src/cats/postgresql_queries.inc
Expand Up @@ -642,7 +642,6 @@ CREATE TABLE %s AS
SQL_QUERY(
SELECT TYPE,
PathId,
-1 AS FilenameId,
Name,
JobId,
LStat,
Expand Down
1 change: 0 additions & 1 deletion src/cats/sqlite_queries.inc
Expand Up @@ -670,7 +670,6 @@ WHERE T1.JobTDate = Job.JobTDate
SQL_QUERY(
SELECT 'F',
T1.PathId,
-1 AS FilenameId,
File.Name,
File.JobId,
File.LStat,
Expand Down

0 comments on commit 55580c1

Please sign in to comment.