Added database check.

This commit is contained in:
Mike Cao 2022-06-22 01:50:33 -07:00
parent 3122bab419
commit ac3017b2e4
6 changed files with 104 additions and 40 deletions

View file

@ -51,15 +51,14 @@ mysql://username:mypassword@localhost:3306/mydb
The `HASH_SALT` is used to generate unique values for your installation.
### Check database
This will also create a login account with username **admin** and password **umami**.
### Create database tables
```bash
yarn check-db
yarn update-db
```
The database structure will automatically be applied on the first start of Umami.
This will also create a login account with username **admin** and password **umami**.
### Build the application
```bash
@ -102,6 +101,7 @@ To get the latest features, simply do a pull, install any new dependencies, and
git pull
yarn install
yarn build
yarn update-db
```
To update the Docker image, simply pull the new images and rebuild: