em-shop/users/migrate.dev.sh

9 lines
181 B
Bash
Raw Normal View History

2024-11-20 09:53:03 +05:00
#!/bin/sh
if [ "$(id -u)" != "0" ]; then
echo -e "\033[31mThis script requires superuser rights.\033[0m"
exit 0
fi
sudo docker exec -it users-dev npx sequelize db:migrate