givanz / Vvveb

Powerful and easy to use cms to build websites, blogs or ecommerce stores.
https://www.vvveb.com
GNU Affero General Public License v3.0
241 stars 49 forks source link

Error message from inserting a new language #57

Open chungyan5 opened 7 months ago

chungyan5 commented 7 months ago

image

givanz commented 7 months ago

Thanks for the bug report, it's fixed in the latest update.

You will need to reinstall after update for changes to take effect, you can remove config/db.php to reset the installation.

https://github.com/givanz/Vvveb/commit/16bcbc7b4e6a0f0a6f8ffb761fb9d3d5dde28d27 https://github.com/givanz/vvveb-admin-template/commit/a94b233fa5807432b1920b055e96adbb21c72ab2

chungyan5 commented 7 months ago

remove config/db.php ==> is it good if i have some data already inside database?

givanz commented 7 months ago

Reinstall will remove all data by dropping tables, if you need to keep data then manually alter column size for name and code in language table.

You can run the following queries in phpmyadmin to change column size.

ALTER TABLE language MODIFY COLUMN `name` VARCHAR(64);
ALTER TABLE language MODIFY COLUMN `code` VARCHAR(12);