Skip to content

Commit

Permalink
Merge pull request #4298 from systeminit/zack/ensure-builtin-is-v2
Browse files Browse the repository at this point in the history
fix(sdf): mark new builtin as v2
  • Loading branch information
zacharyhamm authored Aug 7, 2024
2 parents cba9750 + d6002e5 commit 2b7d510
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/dal/src/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,14 @@ impl Workspace {
.feature_flags_service()
.feature_is_enabled(&FeatureFlag::ActionsV2);

let version_string = WorkspaceSnapshotGraphDiscriminants::V2.to_string();
let row = ctx
.txns()
.await?
.pg()
.query_one(
"INSERT INTO workspaces (pk, name, default_change_set_id, uses_actions_v2, token) VALUES ($1, $2, $3, $4, $5) RETURNING *",
&[&head_pk, &DEFAULT_BUILTIN_WORKSPACE_NAME, &change_set_id, &uses_actions_v2, &DEFAULT_BUILTIN_WORKSPACE_TOKEN],
"INSERT INTO workspaces (pk, name, default_change_set_id, uses_actions_v2, token, snapshot_version) VALUES ($1, $2, $3, $4, $5, $6) RETURNING *",
&[&head_pk, &DEFAULT_BUILTIN_WORKSPACE_NAME, &change_set_id, &uses_actions_v2, &DEFAULT_BUILTIN_WORKSPACE_TOKEN, &version_string],
)
.await?;

Expand Down

0 comments on commit 2b7d510

Please sign in to comment.