mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Change donations db migration from CREATE to MERGE to work in all circumstances
This commit is contained in:
parent
66eaf1a478
commit
8295ec5827
@ -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" %}
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user