mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(coderd/database): add api_version to provisioner_daemons table (#11204)
Adds column api_version to the provisioner_daemons table. This is distinct from the coderd version, and is used to handle breaking changes in the provisioner daemon API.
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE ONLY provisioner_daemons
|
||||
DROP COLUMN api_version;
|
||||
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE ONLY provisioner_daemons
|
||||
ADD COLUMN api_version text NOT NULL DEFAULT '1.0';
|
||||
COMMENT ON COLUMN provisioner_daemons.api_version IS 'The API version of the provisioner daemon';
|
||||
Reference in New Issue
Block a user