Skip to content

Commit

Permalink
Actually add the migration
Browse files Browse the repository at this point in the history
  • Loading branch information
inahga committed Apr 12, 2024
1 parent e46d404 commit 8c08570
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions migration/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ impl MigratorTrait for Migrator {
Box::new(m20231012_225001_rename_hpke_configs_to_collector_credentials::Migration),
Box::new(m20231012_233117_add_token_hash_to_collector_credential::Migration),
Box::new(m20240214_215101_upload_metrics::Migration),
Box::new(m20240411_195358_time_bucketed_fixed_size::Migration),
]
}
}
6 changes: 3 additions & 3 deletions migration/src/m20240411_195358_time_bucketed_fixed_size.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ impl MigrationTrait for Migration {
TableAlterStatement::new()
.table(Task::Table)
.add_column(
ColumnDef::new(Task::BatchTimeWindowSize)
ColumnDef::new(Task::BatchTimeWindowSizeSeconds)
.big_integer()
.null(),
)
Expand All @@ -25,7 +25,7 @@ impl MigrationTrait for Migration {
.alter_table(
TableAlterStatement::new()
.table(Task::Table)
.drop_column(Task::BatchTimeWindowSize)
.drop_column(Task::BatchTimeWindowSizeSeconds)
.to_owned(),
)
.await
Expand All @@ -35,5 +35,5 @@ impl MigrationTrait for Migration {
#[derive(Iden)]
enum Task {
Table,
BatchTimeWindowSize,
BatchTimeWindowSizeSeconds,
}

0 comments on commit 8c08570

Please sign in to comment.