let rel_tbl = MetadataTypes.rel_tbl () in
let name_tbl = MetadataTypes.name_tbl () in
let count_tbl = MetadataTypes.count_tbl () in
+ let l_obj_tbl = MetadataTypes.library_obj_tbl in
+ let l_sort_tbl = MetadataTypes.library_sort_tbl in
+ let l_rel_tbl = MetadataTypes.library_rel_tbl in
+ let l_name_tbl = MetadataTypes.library_name_tbl in
+ let l_count_tbl = MetadataTypes.library_count_tbl in
let tbls = [
(obj_tbl,`RefObj) ; (sort_tbl,`RefSort) ; (rel_tbl,`RefRel) ;
- (name_tbl,`ObjectName) ; (count_tbl,`Count) ]
+ (name_tbl,`ObjectName) ; (count_tbl,`Count) ]
+ in
+ let system_tbls = [
+ (l_obj_tbl,`RefObj) ; (l_sort_tbl,`RefSort) ; (l_rel_tbl,`RefRel) ;
+ (l_name_tbl,`ObjectName) ; (l_count_tbl,`Count) ]
in
let statements =
- (SqlStatements.create_tables tbls) @ (SqlStatements.create_indexes tbls)
+ (SqlStatements.create_tables system_tbls) @
+ (SqlStatements.create_tables tbls) @
+ (SqlStatements.create_indexes system_tbls) @
+ (SqlStatements.create_indexes tbls)
in
List.iter (fun statement ->
try