CRUD icon indicating copy to clipboard operation
CRUD copied to clipboard

[Bug] Installation freezes on SQLite

Open tabacitu opened this issue 1 year ago • 1 comments

Bug report

What I did

Installed a fresh Laravel, then Backpack on top:

laravel new installation-failes-on-sql
# chose no starter kit
# chose SQLite as the DB when asked

composer require backpack/crud
php artisan backpack:install

What I expected to happen

Work.

What happened

Installation got stuck here: CleanShot 2024-02-27 at 18 01 10@2x

What I've already tried to fix it

Ran the manual installation process. During it...

  • I found the first step gives an error 🤦‍♂️ but that's a different problem;
  • I found when running php artisan migrate that it will ask me if I want to create the database (because it doesn't exist);
  • if after that step I run php artisan backpack:install, all works great;

I don't know what we should do in this case... but we should do something, I do think people are going to use SQLite more and more nowadays that it's the default in Laravel 11.

Is it a bug in the latest version of Backpack?

Yes, this would try to install the latest version of Backpack.

tabacitu avatar Feb 27 '24 16:02 tabacitu

Hey @tabacitu is it possible that you don't have sqlite extension enabled/installed ?

I've just did a new project, using Laravel 11, ran php artisan backpack:install, created admin users and logged it, using sqlite:

image

image

Cheers

pxpm avatar Feb 29 '24 12:02 pxpm

Hey Cristian, I couldn't reproduce this again.

I've just installed a fresh app, tried migrating first and after run the install, tried without migrations just run the install and everything went smooth.

Please reopen and provide steps to reproduce if possible.

Cheers

pxpm avatar May 20 '24 10:05 pxpm