Xperez
(Xabier Pérez Fernández)
May 28, 2020, 1:35am
1
Hi!
I´m having some trouble to understand how to make a database migration as this doc tells me to:
https://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/configuration/enable_certificates.html#id14
I created a file using:
nano /etc/tmpfiles.d/temp.conf
And added to the file:
#Type Path Mode UID GID Age
d /tmp/certificates 0755 www-data www-data -
But now i have to run migrations for my LMS and STUDIO services…How can i do that?
I guess i´ll have to enter lms and studio shell using
make lms-shell or make studio-shell
But i dont know how to really run this migrations.
Thanks a lot in advance
Xperez
(Xabier Pérez Fernández)
May 28, 2020, 2:14am
2
UPDATE: I tried paver update_db in both studio-shell and lms-shell.
Can anyone confirm that this is in fact the solution?
Hi @Xperez , yes paver update_db
is the expected command to run migrations. If you’re using the devstack, the Makefile
contains targets to run migrations (update-db and friends ) without requiring entering the lms or studio shells.
1 Like
Xperez
(Xabier Pérez Fernández)
May 29, 2020, 4:58pm
4
This was really helpful, thanks a lot for your guidance
1 Like