njames180's avatar

sqlite sushi 'database' throwing error

I have a sushi model that is throwing a:


	SQLSTATE[HY000]: General error: 1 no such table: <tablename> 

error.

Sqlite is installed properly and have validated that and sushi in another project on the same machine.

I have ubuntu 19.10 / php7.4 and valet installed. Everything has been turn off and on again and restarted.

Anyone have any ideas?

0 likes
2 replies
Tray2's avatar

Have you migrated the database? php artisan migrate

Have you hardcoded the string '' somewhere?

njames180's avatar

Great idea @tray2 I have a local deploy script:


#!/bin/bash

DEPLOY_START=$(date +%s.%N)

composer install --no-interaction --optimize-autoloader

#Migrate if needed
php artisan migrate --force
php artisan tenancy:migrate --force

# Restart the queue
php artisan queue:restart

rm -rf node_modules
npm install
npm run dev

DEPLOY_END=$(date +%s.%N)

echo 'Deploy took: ' $( echo $DEPLOY_END - $DEPLOY_START | bc)

The only other thing I have done is import the db from scripts from mysqldump.

This is a https://github.com/calebporzio/sushi model so it is an in memory sqlite db.

Please or to participate in this conversation.