2 months ago
Project Id: 43353f5c-6fd8-4840-ad56-c1c28725e937
25 Replies
I'm basically not being able to execute a migration script iwthin my postgres database.
2 months ago
This thread has been opened as a bounty so the community can help solve it.
Status changed to Open Railway • about 2 months ago
2 months ago
Are there any errors in your database logs?
2 months ago
And are you trying to run a migration script in your Dockerfile or during the build process?
Yeah...
Attachments
2 months ago
Are you trying to create a trigger?
2 months ago
What does your SQL script look like?
(no markdown available for this content)
Attachments
2 months ago
At the bottom you have a loop that creates the triggers. Try adding a DROP statement for the trigger before adding it.
2 months ago
The error is caused by trying to create preexisting triggers.
One thing that can be useful, is that i'm trying to apply this same script using dbeaver, from my local machine, and it simply runs... No error, nothing. But when i use the web interface, it don't apply the changes to database
2 months ago
I assume you're using the public URL?
Attachments
2 months ago
Try running individual sections instead of running a whole script and see which parts aren't being ran.
Reviewing the script, now i've found one thing: I start the cript with begin (starting a new transaction), but the commit is missing.
2 months ago
Good to know haha
2 months ago
np
Status changed to Solved 0x5b62656e5d • about 2 months ago