Skip to content

Commit efcd9e9

Browse files
committed
Add a column to immutably store the verified email of the version publisher
This is denormalized onto version deliberately. If people delete their account, remove their email, etc we still have a way to attempt to contact the publisher of a particular version in the event of a DMCA complaint.
1 parent 62fdb18 commit efcd9e9

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE versions DROP COLUMN published_by_email VARCHAR;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE versions ADD COLUMN published_by_email VARCHAR;

src/schema.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,12 @@ table! {
909909
///
910910
/// (Automatically generated by Diesel.)
911911
published_by -> Nullable<Int4>,
912+
/// The `published_by_email` column of the `versions` table.
913+
///
914+
/// Its SQL type is `Nullable<Varchar>`.
915+
///
916+
/// (Automatically generated by Diesel.)
917+
published_by_email -> Nullable<Varchar>,
912918
}
913919
}
914920

0 commit comments

Comments
 (0)