-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge sqlite check to database check #41535
Conversation
73685ec
to
e3d96ff
Compare
e3d96ff
to
60bc97e
Compare
47bf97f
to
09c67c5
Compare
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
09c67c5
to
95ea46c
Compare
@@ -81,7 +83,10 @@ public function run(): SetupResult { | |||
} elseif ($databasePlatform instanceof OraclePlatform) { | |||
$version = 'Oracle'; | |||
} elseif ($databasePlatform instanceof SqlitePlatform) { | |||
$version = 'Sqlite'; | |||
return SetupResult::warning( | |||
$this->l10n->t('SQLite is currently being used as the backend database. For larger installations we recommend that you switch to a different database backend. This is particularly recommended when using the desktop client for file synchronisation. To migrate to another database use the command line tool: "occ db:convert-type".'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add this warning only if the instance have more than 5 users?
I am thinking about a small arbitrary limit so an admin of a very small instance won't have this warning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can, but should we?
One thing that pops to my mind is that if the admin is setting up for a large instance he will have no users at the beginning and this warning will only be seen once growing, and migration can be hard?
But yeah maybe we can always put the same description, but set the status to success/info/warning depending if user number is <=5/>5/>20
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html
SQLite (only recommended for testing and minimal-instances)
I think warning is totally fine for "production" instances. It always can have negative performance impact.
We also warn about int32 when you are alone, not having a memcache (info only), missing indexes, etc.
I think warning against SQLite is totally fine as it's really recommended to go with anything else.
Summary
Merge the SQlite setup check into the already existing supported database check.
Checklist