clarified db content: avoid redundancy of historic ML_IDENTIFIER;
authorwenzelm
Sun, 26 Feb 2023 21:55:20 +0100
changeset 77387 cd10b8edfdf5
parent 77386 cae3d891adff
child 77389 aac23f2e7f3c
clarified db content: avoid redundancy of historic ML_IDENTIFIER;
src/Pure/Tools/build_process.scala
--- a/src/Pure/Tools/build_process.scala	Sun Feb 26 21:17:10 2023 +0100
+++ b/src/Pure/Tools/build_process.scala	Sun Feb 26 21:55:20 2023 +0100
@@ -255,10 +255,10 @@
 
     object Config {
       val instance = Generic.instance.make_primary_key
-      val ml_identifier = SQL.Column.string("ml_identifier")
+      val ml_platform = SQL.Column.string("ml_platform")
       val options = SQL.Column.string("options")
 
-      val table = make_table("", List(instance, ml_identifier, options))
+      val table = make_table("", List(instance, ml_platform, options))
     }
 
     object State {
@@ -424,7 +424,7 @@
     def write_config(db: SQL.Database, instance: String, hostname: String, options: Options): Unit =
       db.using_statement(Config.table.insert()) { stmt =>
         stmt.string(1) = instance
-        stmt.string(2) = Isabelle_System.getenv("ML_IDENTIFIER")
+        stmt.string(2) = Isabelle_System.getenv("ML_PLATFORM")
         stmt.string(3) = options.make_prefs(Options.init(prefs = ""))
         stmt.execute()
       }