mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(coderd/database): add missing v prefix to provisioner_daemons.api_version (#11385)
This commit is contained in:
Generated
+1
-1
@@ -537,7 +537,7 @@ CREATE TABLE provisioner_daemons (
|
|||||||
tags jsonb DEFAULT '{}'::jsonb NOT NULL,
|
tags jsonb DEFAULT '{}'::jsonb NOT NULL,
|
||||||
last_seen_at timestamp with time zone,
|
last_seen_at timestamp with time zone,
|
||||||
version text DEFAULT ''::text NOT NULL,
|
version text DEFAULT ''::text NOT NULL,
|
||||||
api_version text DEFAULT '1.0'::text NOT NULL
|
api_version text DEFAULT 'v1.0'::text NOT NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
COMMENT ON COLUMN provisioner_daemons.api_version IS 'The API version of the provisioner daemon';
|
COMMENT ON COLUMN provisioner_daemons.api_version IS 'The API version of the provisioner daemon';
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
ALTER TABLE ONLY provisioner_daemons
|
||||||
|
ALTER COLUMN api_version SET DEFAULT '1.0'::text;
|
||||||
|
UPDATE provisioner_daemons
|
||||||
|
SET api_version = '1.0'
|
||||||
|
WHERE api_version = 'v1.0';
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
ALTER TABLE ONLY provisioner_daemons
|
||||||
|
ALTER COLUMN api_version SET DEFAULT 'v1.0'::text;
|
||||||
|
UPDATE provisioner_daemons
|
||||||
|
SET api_version = 'v1.0'
|
||||||
|
WHERE api_version = '1.0';
|
||||||
@@ -24,7 +24,7 @@ const (
|
|||||||
// APIVersionCurrent is the current provisionerd API version.
|
// APIVersionCurrent is the current provisionerd API version.
|
||||||
// Breaking changes to the provisionerd API **MUST** increment
|
// Breaking changes to the provisionerd API **MUST** increment
|
||||||
// the major version below.
|
// the major version below.
|
||||||
APIVersionCurrent = "1.0"
|
APIVersionCurrent = "v1.0"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ServeOptions are configurations to serve a provisioner.
|
// ServeOptions are configurations to serve a provisioner.
|
||||||
|
|||||||
Reference in New Issue
Block a user