Skip to content

Commit

Permalink
fix: import db into docker container and remove redundant sql
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Jun 2, 2024
1 parent afe8bd0 commit a1c54d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 69 deletions.
2 changes: 1 addition & 1 deletion admin/database/db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ INSERT INTO users VALUES("3","eyteyt","25d55ad283aa400af464c76d713c07ad","Tân H
INSERT INTO users VALUES("1038","shtshrffgd","e807f1fcf82d132f9bb018ca6738a19f","t4greg","0","author-auto.png","[email protected]","+8489941576","3128 Doctors Drive","2020-04-02 01:35:31","0","3cb8761195802abf0656e670f73b277c","2020-04-11 01:40:43");
INSERT INTO users VALUES("1039","thtreht","e807f1fcf82d132f9bb018ca6738a19f","dtrdhtrjy","2","author-auto.png","[email protected]","4089941576","3128 Doctors Drive","2020-04-11 02:41:21","0","9b20629c075697db8c9c5d3b94a86f8b",NULL);
INSERT INTO users VALUES("1040","admin","e807f1fcf82d132f9bb018ca6738a19f","Át min","1","author-auto.png","[email protected]","4089941576","3128 Doctors Drive","2020-04-11 02:43:23","0","aca75e03278fa33d61ce42889ea19ed3",NULL);
INSERT INTO users VALUES("1041","ưer","eba0fd768067afc24806607a4de3f852","ỳdtdy","0","author-auto.png","[email protected]","4089941576","3128 Doctors Drive","2020-04-11 02:45:37","0","8d9bce9a1dec443a338a00c3e79576f8","2020-04-11 03:20:35");
INSERT INTO users VALUES("1041","user","eba0fd768067afc24806607a4de3f852","ỳdtdy","0","author-auto.png","[email protected]","4089941576","3128 Doctors Drive","2020-04-11 02:45:37","0","8d9bce9a1dec443a338a00c3e79576f8","2020-04-11 03:20:35");


DROP TABLE IF EXISTS users_online;
Expand Down
68 changes: 0 additions & 68 deletions admin/database/users.sql

This file was deleted.

2 changes: 2 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ else
echo " ∟ Running composer install"
docker compose run --rm -w /var/www/html server composer install
fi

docker-compose run --rm db_server sh -c "mysql -h db_server -P 3306 -u $MYSQL_USER -p$MYSQL_PASS $MYSQL_DB < /var/lib/mysql/sql/db.sql"

0 comments on commit a1c54d2

Please sign in to comment.