diff --git a/backend/README.md b/backend/README.md index d7031106e..6d837856c 100644 --- a/backend/README.md +++ b/backend/README.md @@ -174,7 +174,6 @@ $ yarn run db:migrate up **Beware**: We have no multiple database setup at the moment. We clean the database after each test, running the tests will wipe out all your data! - {% tabs %} {% tab title="Docker" %} diff --git a/backend/src/db/migrations/20210506150512-add-donations-node.js b/backend/src/db/migrations/20210506150512-add-donations-node.js index 88dcb1ff9..699c451cf 100644 --- a/backend/src/db/migrations/20210506150512-add-donations-node.js +++ b/backend/src/db/migrations/20210506150512-add-donations-node.js @@ -14,7 +14,7 @@ export async function up(next) { const donationId = uuid() await transaction.run( ` - CREATE (donationInfo:Donations) + MERGE (donationInfo:Donations) SET donationInfo.id = $donationId SET donationInfo.createdAt = toString(datetime()) SET donationInfo.updatedAt = donationInfo.createdAt