Docker Community Forums

Share and learn in the Docker community.

Add trigger to sql database

(Izeko2004) #1

Is it possible to add a trigger to a database running in docker from script.


(David Maze) #2

Yes; either the same way you’d do it in the same database without Docker, or the same way you’d initialize a Docker-hosted database on first startup. At this level it’s “just a database” that happens to be running in Docker.

(Izeko2004) #3

Thanks. I have sorted this now.