12 days 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.
12 days ago
This thread has been opened as a bounty so the community can help solve it.
Status changed to Open Railway • 12 days ago
12 days ago
Are there any errors in your database logs?
12 days ago
And are you trying to run a migration script in your Dockerfile or during the build process?
Yeah...
Attachments
12 days ago
Are you trying to create a trigger?
12 days ago
What does your SQL script look like?
(no markdown available for this content)
Attachments
12 days ago
At the bottom you have a loop that creates the triggers. Try adding a DROP statement for the trigger before adding it.
12 days 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
12 days ago
I assume you're using the public URL?
Attachments
12 days 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.
12 days ago
Good to know haha
12 days ago
np
Status changed to Solved 0x5b62656e5d • 12 days ago