Skip to content

Commit

Permalink
Merge pull request #8268 from dolthub/db/dolt-ci-events
Browse files Browse the repository at this point in the history
Db/dolt ci events
  • Loading branch information
coffeegoddd authored Aug 15, 2024
2 parents 10c0db0 + 4e54dec commit e7018b7
Show file tree
Hide file tree
Showing 8 changed files with 618 additions and 7 deletions.
15 changes: 14 additions & 1 deletion go/libraries/doltcore/doltdb/system_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ var writeableSystemTables = []string{
IgnoreTableName,
RebaseTableName,
WorkflowsTableName,
WorkflowEventsTableName,
}

var persistedSystemTables = []string{
Expand Down Expand Up @@ -320,7 +321,7 @@ const (
)

const (
// WorkflowsTableName is the dolt CI system table name
// WorkflowsTableName is the dolt CI workflows system table name
WorkflowsTableName = "dolt_ci_workflows"

// WorkflowsNameColName is the name of the column storing the name of the workflow.
Expand All @@ -331,6 +332,18 @@ const (

// WorkflowsUpdatedAtColName is the name of the column storing the update time of the row entry.
WorkflowsUpdatedAtColName = "updated_at"

// WorkflowEventsTableName is the dolt CI workflow events system table name
WorkflowEventsTableName = "dolt_ci_workflow_events"

// WorkflowEventsIdPkColName is the name of the primary key id column on the workflow events table.
WorkflowEventsIdPkColName = "id"

// WorkflowEventsWorkflowNameFkColName is the name of the workflows name foreign key in the workflow events table.
WorkflowEventsWorkflowNameFkColName = "workflow_name_fk"

// WorkflowEventsEventTypeColName is the name of the event type column in the workflow events table.
WorkflowEventsEventTypeColName = "event_type"
)

const (
Expand Down
9 changes: 9 additions & 0 deletions go/libraries/doltcore/schema/reserved_tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,13 @@ const (

// WorkflowsUpdatedAtTag is the tag of the updated_at column in the workflows table
WorkflowsUpdatedAtTag

// WorkflowEventsIdTag is the tag of the id column in the workflow events table
WorkflowEventsIdTag

// WorkflowEventsWorkflowNameFkTag is the tag of the workflow name fk column in the workflow events table
WorkflowEventsWorkflowNameFkTag

// WorkflowEventsEventTypeTag is the tag of the events typ column in the workflow events table
WorkflowEventsEventTypeTag
)
Loading

0 comments on commit e7018b7

Please sign in to comment.