Skip to content

Commit 480042c

Browse files
committed
database: Alter crate_owner_invitations.expires_at column to be not null
1 parent 847ca22 commit 480042c

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

crates/crates_io_database/src/schema.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ diesel::table! {
222222
/// (Automatically generated by Diesel.)
223223
token -> Text,
224224
/// Point in time at which the invitation expires/expired.
225-
expires_at -> Nullable<Timestamptz>,
225+
expires_at -> Timestamptz,
226226
}
227227
}
228228

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
alter table crate_owner_invitations alter column expires_at drop not null;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
alter table crate_owner_invitations alter column expires_at set not null;

0 commit comments

Comments
 (0)