Mise à jour terminée. Pour connaître les apports de la version 13.8.4 par rapport à notre ancienne version vous pouvez lire les "Release Notes" suivantes :
https://about.gitlab.com/releases/2021/02/11/security-release-gitlab-13-8-4-released/
https://about.gitlab.com/releases/2021/02/05/gitlab-13-8-3-released/

orm_schema.ml 2.81 KB
Newer Older
Jean-Christophe Filliâtre's avatar
headers  
Jean-Christophe Filliâtre committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
(**************************************************************************)
(*                                                                        *)
(*  Copyright (C) 2010-                                                   *)
(*    Francois Bobot                                                      *)
(*    Jean-Christophe Filliatre                                           *)
(*    Johannes Kanig                                                      *)
(*    Andrei Paskevich                                                    *)
(*                                                                        *)
(*  This software is free software; you can redistribute it and/or        *)
(*  modify it under the terms of the GNU Library General Public           *)
(*  License version 2.1, with the special exception on linking            *)
(*  described in file LICENSE.                                            *)
(*                                                                        *)
(*  This software is distributed in the hope that it will be useful,      *)
(*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *)
(*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                  *)
(*                                                                        *)
(**************************************************************************)

MARCHE Claude's avatar
MARCHE Claude committed
20 21 22 23 24 25 26 27 28 29 30 31
#load "printer_utils.cmo"
#load "sql_orm_header.cmo"
#load "sql_orm.cmo"

open Sql_orm

open Schema

let boolean = integer

let all_tables = make 
  [
MARCHE Claude's avatar
db  
MARCHE Claude committed
32 33 34 35 36 37
    (* table of locs *)
    ("loc",
     [ text "file";
       integer "line";
       integer "start";
       integer "stop";
MARCHE Claude's avatar
MARCHE Claude committed
38 39 40
     ],
     [], default_opts);

MARCHE Claude's avatar
db  
MARCHE Claude committed
41 42 43 44 45 46 47 48 49 50
    (* external proofs *)
    ("external_proof",
     [ text "prover"; (* prover identifier *)
       integer "timelimit"; (* CPU limit given in seconds *)
       integer "memlimit"; (* VM limit given in megabytes *)
       integer "status"; (* enum{proof_attempt_status}; the current state *)
       real "result_time"; (* CPU time for that run in seconds *)
       text "trace"; (* any kind of trace returned by an automatic prover,
			or any kind of proof script for an interactive prover *)
       boolean "obsolete";
MARCHE Claude's avatar
MARCHE Claude committed
51 52 53
     ],
     [], default_opts);

MARCHE Claude's avatar
db  
MARCHE Claude committed
54 55 56 57 58 59 60 61 62
    (* goal *)
    ("goal",
     [ text "task_checksum";
       foreign "transf" "parent"; (* parent transf if any *)
       text "name"; (* qualified proposition name *)
       foreign "loc" "pos"; 
       foreign_many "external_proof" "external_proofs";
       foreign_many "transf" "transformations";
       boolean "proved";
MARCHE Claude's avatar
MARCHE Claude committed
63 64 65
     ],
     [], default_opts);

MARCHE Claude's avatar
db  
MARCHE Claude committed
66 67 68 69 70
    (* transformations *)
    ("transf",
     [ text "name"; (* transformation name *)
       boolean "obsolete";
       foreign_many "goal" "subgoals";
MARCHE Claude's avatar
MARCHE Claude committed
71
     ],
MARCHE Claude's avatar
db  
MARCHE Claude committed
72
     [], default_opts);
MARCHE Claude's avatar
MARCHE Claude committed
73 74 75 76 77
    
  ]       

let () = generate ~debug:false all_tables "src/manager/db"