Skip to content

Commit 1310349

Browse files
committed
Remove the migration to drop the column, we'll do that in a separate deploy
1 parent f44f544 commit 1310349

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/bin/migrate.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -868,19 +868,6 @@ fn migrations() -> Vec<Migration> {
868868
tx.execute("DROP TABLE reserved_crate_names", &[])?;
869869
Ok(())
870870
}),
871-
Migration::new(20170305123234, |tx| {
872-
tx.execute("ALTER TABLE crates DROP COLUMN max_version", &[])?;
873-
Ok(())
874-
}, |tx| {
875-
tx.execute("ALTER TABLE crates ADD COLUMN max_version VARCHAR NOT NULL DEFAULT '0.0.0'", &[])?;
876-
tx.execute("UPDATE crates SET max_version = COALESCE((
877-
SELECT num FROM VERSIONS
878-
WHERE num SIMILAR TO '[0-9]+\\.[0-9]+\\.[0-9]+'
879-
ORDER BY split_part(num, '.', 1)::int, split_part(num, '.', 2)::int, split_part(num, '.', 3)::int
880-
LIMIT 1
881-
), '0.0.0')", &[])?;
882-
Ok(())
883-
}),
884871
];
885872
// NOTE: Generate a new id via `date +"%Y%m%d%H%M%S"`
886873

0 commit comments

Comments
 (0)