Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the first run using docker #809

Merged
merged 1 commit into from
Mar 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tools/mysql/schema-update-11.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# This script upgrade DB schema from version 10 to version 11

ALTER TABLE environs MODIFY COLUMN stage_type VARCHAR(32) NOT NULL DEFAULT 'DEFAULT';
ALTER TABLE environs MODIFY COLUMN stage_type VARCHAR(32) NOT NULL DEFAULT 'DEFAULT';

-- make sure to update the schema version to 11
UPDATE schema_versions SET version=11;
2 changes: 1 addition & 1 deletion tools/mysql/schema-update-7.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# This script upgrade DB schema from version 6 to version 7

ALTER TABLE environs MODIFY chatroom VARCHAR(128) DEFAULT NULL;
ALTER TABLE environs MODIFY chatroom VARCHAR(128) DEFAULT NULL;

-- make sure to update the schema version to 7
UPDATE schema_versions SET version=7;
8 changes: 4 additions & 4 deletions tools/mysql/schema-update-8.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

# This script upgrade DB schema from version 7 to version 8

ALTER TABLE environs ADD COLUMN stage_type VARCHAR(32) NOT NULL DEFAULT 'PRODUCTION';
ALTER TABLE groups MODIFY group_name VARCHAR(128) NOT NULL;
ALTER TABLE groups_and_envs MODIFY group_name VARCHAR(128) NOT NULL;
ALTER TABLE environs ADD COLUMN stage_type VARCHAR(32) NOT NULL DEFAULT 'PRODUCTION';
ALTER TABLE groups MODIFY group_name VARCHAR(128) NOT NULL;
ALTER TABLE groups_and_envs MODIFY group_name VARCHAR(128) NOT NULL;

CREATE TABLE IF NOT EXISTS hosts_and_agents (
host_id VARCHAR(64) NOT NULL,
agent_version VARCHAR(64), DEFAULT 'UNKNOWN',
agent_version VARCHAR(64) DEFAULT 'UNKNOWN',

PRIMARY KEY (host_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Expand Down
2 changes: 1 addition & 1 deletion tools/mysql/schema-update-9.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# This script upgrade DB schema from version 8 to version 9

ALTER TABLE hosts MODIFY group_name VARCHAR(128) NOT NULL;
ALTER TABLE hosts MODIFY group_name VARCHAR(128) NOT NULL;

-- make sure to update the schema version to 9
UPDATE schema_versions SET version=9;