Skip to content

Commit 4bab3e8

Browse files
committed
fix(coderd/database): add missing v prefix to provisioner_daemons.api_version
1 parent 068e730 commit 4bab3e8

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ALTER TABLE ONLY provisioner_daemons
2+
ALTER COLUMN api_version SET DEFAULT '1.0'::text;
3+
UPDATE provisioner_daemons
4+
SET api_version = '1.0'
5+
WHERE api_version = 'v1.0';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ALTER TABLE ONLY provisioner_daemons
2+
ALTER COLUMN api_version SET DEFAULT 'v1.0'::text;
3+
UPDATE provisioner_daemons
4+
SET api_version = 'v1.0'
5+
WHERE api_version = '1.0';

provisionersdk/serve.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const (
2424
// APIVersionCurrent is the current provisionerd API version.
2525
// Breaking changes to the provisionerd API **MUST** increment
2626
// the major version below.
27-
APIVersionCurrent = "1.0"
27+
APIVersionCurrent = "v1.0"
2828
)
2929

3030
// ServeOptions are configurations to serve a provisioner.

0 commit comments

Comments
 (0)