mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 12:05:41 +01:00
SQLite support
This commit is contained in:
parent
2181ca4ec8
commit
578a96ee09
7 changed files with 319 additions and 5 deletions
|
|
@ -12,12 +12,16 @@ function getDatabaseType() {
|
|||
return 'postgresql';
|
||||
}
|
||||
|
||||
if (type === 'file') {
|
||||
return 'sqlite';
|
||||
}
|
||||
|
||||
return type;
|
||||
}
|
||||
|
||||
const databaseType = getDatabaseType();
|
||||
|
||||
if (!databaseType || !['mysql', 'postgresql'].includes(databaseType)) {
|
||||
if (!databaseType || !['mysql', 'postgresql', 'sqlite'].includes(databaseType)) {
|
||||
throw new Error('Missing or invalid database');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue