Skip to content
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

Widgets don't work in SQLite #55

Open
mokhosh opened this issue Oct 24, 2024 · 0 comments
Open

Widgets don't work in SQLite #55

mokhosh opened this issue Oct 24, 2024 · 0 comments

Comments

@mokhosh
Copy link

mokhosh commented Oct 24, 2024

Currently the widgets don't work in sqlite. Apparently they don't work with MSSQL either #41

I haven't tried postgres, but they do work with mysql.

With this modification they work with sqlite however, but it will surely break everything else:

protected function getCards(): array
{
    $aggregationColumns = [
        DB::raw('COUNT(*) as count'),
        DB::raw('cast(SUM((julianday(finished_at) - julianday(started_at)) * 60 * 60 * 24) as integer) as total_time_elapsed'),
        DB::raw('AVG(julianday(finished_at) - julianday(started_at)) as average_time_elapsed'),
    ];

Maybe we can use eloquent in some way to avoid hitting engine specific issues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant