Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f80a1cf

Browse files
authored
fix(coderd/database): add missing v prefix to provisioner_daemons.api_version (coder#11385)
1 parent 068e730 commit f80a1cf

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

coderd/database/dump.sql

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
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)