You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This might help explain how the volumes get saved when using compose: #203 (comment). The short answer is that the initdb.d files are only run when the database files have not been created.
Excuse my lack of knowledge with docker, but I can't seem to figure out why my initial schema isn't being ran. My docker-compose looks like:
then inside
./backend/database
I havewhere initial_schema.sql =
CREATE TABLE links(channelid INT NOT NULL PRIMARY KEY, link VARCHAR(255) NOT NULL)
Everything seems to get up and running, but the links table is never created. Am I doing something blatantly wrong here? Thanks a bunch for any help!
The text was updated successfully, but these errors were encountered: