mirror of
https://github.com/coder/coder.git
synced 2025-07-21 01:28:49 +00:00
fix(coderd/database): add missing v prefix to provisioner_daemons.api_version (#11385)
This commit is contained in:
2
coderd/database/dump.sql
generated
2
coderd/database/dump.sql
generated
@ -537,7 +537,7 @@ CREATE TABLE provisioner_daemons (
|
||||
tags jsonb DEFAULT '{}'::jsonb NOT NULL,
|
||||
last_seen_at timestamp with time zone,
|
||||
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';
|
||||
|
@ -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.
|
||||
// Breaking changes to the provisionerd API **MUST** increment
|
||||
// the major version below.
|
||||
APIVersionCurrent = "1.0"
|
||||
APIVersionCurrent = "v1.0"
|
||||
)
|
||||
|
||||
// ServeOptions are configurations to serve a provisioner.
|
||||
|
Reference in New Issue
Block a user