forked from mirror/Part-DB.Part-DB-server
Added support for SQLite.
This commit is contained in:
parent
bd1da1ce5e
commit
74e4c4d0d1
12 changed files with 340 additions and 40 deletions
9
.env
9
.env
|
@ -22,11 +22,14 @@ APP_SECRET=a03498528f5a5fc089273ec9ae5b2849
|
|||
|
||||
###> doctrine/doctrine-bundle ###
|
||||
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
|
||||
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
|
||||
# For a PostgreSQL database, use: "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=11&charset=utf8"
|
||||
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
|
||||
|
||||
# Use a file (SQLite) as database. For bigger instances you should use a real database server (like MySQL)
|
||||
DATABASE_URL="sqlite:///%kernel.project_dir%/var/app.db"
|
||||
|
||||
# Uncomment this line (and comment the line above to use a MySQL database
|
||||
#DATABASE_URL=mysql://root:@127.0.0.1:3306/part-db?serverVersion=5.7
|
||||
DATABASE_URL=mysql://root:@127.0.0.1:3306/part-db?serverVersion=5.7
|
||||
|
||||
###< doctrine/doctrine-bundle ###
|
||||
|
||||
### Custom vars
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue