Skip to content

Commit 37bd286

Browse files
committed
Drop the crates.license column
This is a destructive migration! It might be best to deploy it independently of its parent. Signed-off-by: Kristofer Rye <[email protected]>
1 parent 74f6f7d commit 37bd286

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- This file should undo anything in `up.sql`
2+
ALTER TABLE crates ADD COLUMN license VARCHAR;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-- ALERT! DESTRUCTIVE MIGRATION
2+
-- DO NOT DEPLOY UNTIL PREVIOUS COMMIT IS DEPLOYED
3+
ALTER TABLE crates DROP COLUMN license;

src/schema.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -332,12 +332,6 @@ table! {
332332
///
333333
/// (Automatically generated by Diesel.)
334334
textsearchable_index_col -> Tsvector,
335-
/// The `license` column of the `crates` table.
336-
///
337-
/// Its SQL type is `Nullable<Varchar>`.
338-
///
339-
/// (Automatically generated by Diesel.)
340-
license -> Nullable<Varchar>,
341335
/// The `repository` column of the `crates` table.
342336
///
343337
/// Its SQL type is `Nullable<Varchar>`.

0 commit comments

Comments
 (0)