@@ -69,23 +69,39 @@ You can have multiple databases configured and switch between them by changing t
69
69
In the ` dev ` folder of your server repository, run
70
70
71
71
``` bash
72
+ export POSTGRES_PASSWORD=' example'
72
73
docker compose --profile postgres up
73
74
```
74
75
76
+ :::note
77
+
78
+ ` POSTGRES_PASSWORD ` only needs to be defined for database setup. It does not need to be defined to
79
+ run the mysql profile.
80
+
81
+ :::
82
+
75
83
</TabItem >
76
84
<TabItem value = " mysql" >
77
85
78
86
In the ` dev ` folder of your server repository, run
79
87
80
88
``` bash
89
+ export MYSQL_ROOT_PASSWORD=' example'
81
90
docker compose --profile mysql up
82
91
```
83
92
93
+ :::note
94
+
95
+ ` MYSQL_ROOT_PASSWORD ` only needs to be defined for database setup. It does not need to be defined to
96
+ run the mysql profile.
97
+
98
+ :::
99
+
84
100
</TabItem >
85
101
<TabItem value = " sqlite" >
86
102
87
- Select a location for your database file. You can use the ` dev ` folder of your server repository,
88
- git is configured to ignore ` .db ` files in this repository for this purpose.
103
+ Select a location for your database file. You can use the ` dev ` folder of your server repository.
104
+ Git is configured to ignore ` .db ` files in this repository for this purpose.
89
105
90
106
</TabItem >
91
107
</Tabs >
@@ -126,7 +142,7 @@ Source path. Use the file location selected in [Database Setup](#database-setup)
126
142
127
143
``` json
128
144
"globalSettings:databaseProvider" : " sqlite" ,
129
- "globalSettings:sqlite:connectionString" : " Data Source=/path/to/your/server/repo/dev/db/ bitwarden.db" ,
145
+ "globalSettings:sqlite:connectionString" : " Data Source=/path/to/your/server/repo/dev/bitwarden.db" ,
130
146
```
131
147
132
148
</TabItem >
@@ -176,6 +192,13 @@ pwsh migrate.ps1 -sqlite
176
192
177
193
The ` -sqlite ` flag on ` migrate.ps1 ` will run ` dotnet ef ` commands to perform the migrations.
178
194
195
+ :::note
196
+
197
+ The migrator creates the database file if it doesn't exist, but it does not create folders. If you
198
+ get an error that the path doesn't exist, it's referring to missing folders.
199
+
200
+ :::
201
+
179
202
</TabItem >
180
203
</Tabs >
181
204
0 commit comments