Skip to content

Commit

Permalink
Merge pull request #3120 from uselagoon/migrations_fixup
Browse files Browse the repository at this point in the history
fix errors in migrations sql
  • Loading branch information
tobybellwood authored Apr 22, 2022
2 parents ef93da0 + 51fe07d commit a604be4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions services/api-db/docker-entrypoint-initdb.d/01-migrations.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,7 @@ CREATE OR REPLACE PROCEDURE
table_name = 'advanced_task_definition_argument'
AND column_name = 'display_name'
) THEN
ALTER TABLE `advanced_task_definition`
ALTER TABLE `advanced_task_definition_argument`
ADD `display_name` varchar(500) NULL;
END IF;
END;
Expand All @@ -1626,7 +1626,7 @@ CREATE OR REPLACE PROCEDURE
column_type_argument_type = "enum('ssh-rsa','ssh-ed25519')"
) THEN
ALTER TABLE ssh_key
MODIFY type ENUM('ssh-rsa', 'ssh-ed25519','ecdsa-sha2-nistp256','ecdsa-sha2-nistp384','ecdsa-sha2-nistp521');
MODIFY key_type ENUM('ssh-rsa', 'ssh-ed25519','ecdsa-sha2-nistp256','ecdsa-sha2-nistp384','ecdsa-sha2-nistp521') NOT NULL DEFAULT 'ssh-rsa';
END IF;
END;
$$
Expand Down Expand Up @@ -1803,6 +1803,7 @@ CALL change_name_index_for_advanced_task_argument();
CALL add_confirmation_text_to_advanced_task_def();
CALL add_display_name_to_advanced_task_argument();
CALL add_ecdsa_ssh_key_types();
CALL add_task_name_to_tasks();
CALL add_new_task_status_types();
CALL update_active_succeeded_tasks();
CALL update_missing_tasknames();
Expand Down

0 comments on commit a604be4

Please sign in to comment.