From e7018e3de482392384e2dbadf3543de3a5823776 Mon Sep 17 00:00:00 2001 From: leoshine <71440988+leo220yuyaodog@users.noreply.github.com> Date: Thu, 10 Mar 2022 11:03:52 +0800 Subject: [PATCH] docs: add a tip to create db for the first time (#550) * add a tip to create db schema ahead of time * add a tip to create db schema ahead of time * docs: add a tip to create db schema ahead of time --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 49723934..6832842e 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,12 @@ username:password@tcp(database_ip:database_port)/ Then create an empty schema (database) named `casdoor` in your relational database. After the program runs for the first time, it will automatically create tables in this schema. +You can also edit `main.go`, modify `false` to `true`. It will automatically create the schema (database) named `casdoor` in this database. + +```bash +createDatabase := flag.Bool("createDatabase", false, "true if you need casdoor to create database") +``` + #### Run Casdoor provides two run modes, the difference is binary size and user prompt.