Skip to content

Commit

Permalink
add rollback script
Browse files Browse the repository at this point in the history
  • Loading branch information
autermann committed Feb 3, 2020
1 parent 7232d3a commit ab86794
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions insert.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ db.termsOfUse.insert({
_id: new ObjectId(),
created: date + "T12:00:00Z",
issuedDate: date,
contents: cat("TOU_EN.html").replace(" +", " "),
contents: cat("terms_of_use_en.html").replace(" +", " "),
translations: {
de: cat("TOU_DE.html").replace(" +", " ")
de: cat("terms_of_use_de.html").replace(" +", " ")
}
});

Expand All @@ -18,8 +18,8 @@ db.privacyStatements.insert({
_id: new ObjectId(),
created: date + "T12:00:00Z",
issuedDate: date,
contents: cat("dataPriv_EN.html").replace(" +", " "),
contents: cat("privacy_statement_en.html").replace(" +", " "),
translations: {
de: cat("dataPriv_DE.html").replace(" +", " ")
de: cat("privacy_statement_de.html").replace(" +", " ")
}
});
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions rollback.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//let date = new Date().toISOString().substring(0, 10);

let date = '2019-07-14';

db.termsOfUse.remove({issuedDate: date});
db.privacyStatements.remove({issuedDate: date});
File renamed without changes.
File renamed without changes.

0 comments on commit ab86794

Please sign in to comment.