Extendy / SmartyURL

SmartyURL is a PHP-based web application for Smart URL management, Sharing, shortening, and analytics, featuring smart redirects.
https://docs.smartyurl.extendy.net/
MIT License
12 stars 2 forks source link

spark migrate does not work if DBPrefix defned #28

Closed mshannaq closed 10 months ago

mshannaq commented 12 months ago

if config variable DBPrefix or .env vairable DBPrefix is defined so php spark migrate will not work and wil give

CodeIgniter v4.4.1 Command Line Tool - Server Time: 2023-09-25 14:32:43 UTC+00:00

Running all new migrations...

[CodeIgniter\Database\Exceptions\DatabaseException]

migration should be changed to support DBPrefix

ghost commented 11 months ago

UrlModel should be reviewed and changed and migration script should be reviews to make sure from using table names from Config files.

becuase it DBPrefix changes will break that.

mshannaq commented 10 months ago

do not use DBPrefix in .env

and keep it the DBPrefix as default

'DBPrefix' => '',