Skip to content

Commit

Permalink
deployer: use upper case for service_id Ulids
Browse files Browse the repository at this point in the history
  • Loading branch information
iulianbarbu committed Jul 31, 2023
1 parent 7b5dc05 commit 441fd00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deployer/migrations/0004_change_service_id_to_ulid.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions deployer/src/handlers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 441fd00

Please sign in to comment.