diff --git a/deployer/migrations/0004_change_service_id_to_ulid.sql b/deployer/migrations/0004_change_service_id_to_ulid.sql index 2d38a6d1b9..e0bb2416d8 100644 --- a/deployer/migrations/0004_change_service_id_to_ulid.sql +++ b/deployer/migrations/0004_change_service_id_to_ulid.sql @@ -8,7 +8,7 @@ CREATE TABLE IF NOT EXISTS services_copy ( INSERT INTO services_copy (id, uuid, name) SELECT - ulid_with_datetime(strftime('%Y-%m-%d %H:%M:%f', datetime('2023-06-01'))) as id, + upper(ulid_with_datetime(strftime('%Y-%m-%d %H:%M:%f', datetime('2023-06-01')))) as id, services.id as uuid, services.name FROM services; diff --git a/deployer/src/handlers/mod.rs b/deployer/src/handlers/mod.rs index 1505c6b040..e64894d53d 100644 --- a/deployer/src/handlers/mod.rs +++ b/deployer/src/handlers/mod.rs @@ -33,6 +33,7 @@ use shuttle_common::storage_manager::StorageManager; use shuttle_common::{request_span, LogItem}; use shuttle_service::builder::clean_crate; use tracing::{error, field, instrument, trace, warn}; +use ulid::Ulid; use utoipa::{IntoParams, OpenApi}; use utoipa_swagger_ui::SwaggerUi; use uuid::Uuid;