Skip to content

Commit

Permalink
Add a few missing columns to make the Models tab load in the UI
Browse files Browse the repository at this point in the history
  • Loading branch information
hammerhead committed Sep 14, 2023
1 parent 4480862 commit 0b5753a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions mlflow_cratedb/adapter/ddl/cratedb.sql
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ CREATE TABLE IF NOT EXISTS "model_versions" (
"name" TEXT NOT NULL,
"version" INTEGER NOT NULL,
"creation_time" BIGINT, -- default=get_current_time_millis
"last_update_time" BIGINT, -- default=get_current_time_millis
"last_updated_time" BIGINT, -- default=get_current_time_millis
"description" TEXT,
"user_id" TEXT,
"current_stage" TEXT,
Expand All @@ -94,8 +94,11 @@ CREATE TABLE IF NOT EXISTS "params" (

CREATE TABLE IF NOT EXISTS "registered_models" (
"name" TEXT NOT NULL,
"key" TEXT NOT NULL,
"value" TEXT
"key" TEXT DEFAULT GEN_RANDOM_TEXT_UUID() NOT NULL,
"value" TEXT,
"creation_time" BIGINT,
"last_updated_time" BIGINT,
"description" TEXT
);

CREATE TABLE IF NOT EXISTS "registered_model_aliases" (
Expand All @@ -106,6 +109,8 @@ CREATE TABLE IF NOT EXISTS "registered_model_aliases" (

CREATE TABLE IF NOT EXISTS "registered_model_tags" (
"name" TEXT NOT NULL,
"key" TEXT NOT NULL,
"value" TEXT NOT NULL,
"creation_time" BIGINT, -- default=get_current_time_millis
"last_update_time" BIGINT, -- default=get_current_time_millis
"description" TEXT
Expand Down

0 comments on commit 0b5753a

Please sign in to comment.