[Fixed] Events column types

This commit is contained in:
MaxBuhe01 2024-11-13 22:53:18 +01:00
parent 62f421de26
commit f9d179cf46

View File

@ -28,10 +28,10 @@ class Events
{ {
try { try {
DatabaseProvider::getDb(DatabaseProvider::FETCH_MODE_ASSOC)->execute(" DatabaseProvider::getDb(DatabaseProvider::FETCH_MODE_ASSOC)->execute("
ALTER TABLE oxmanufacturers ADD COLUMN D3DESCRIPTION VARCHAR(255) NOT NULL; ALTER TABLE oxmanufacturers ADD COLUMN D3DESCRIPTION TEXT NOT NULL DEFAULT '';
ALTER TABLE oxmanufacturers ADD COLUMN D3DESCRIPTION_1 VARCHAR(255) NOT NULL; ALTER TABLE oxmanufacturers ADD COLUMN D3DESCRIPTION_1 TEXT NOT NULL DEFAULT '';
ALTER TABLE oxmanufacturers ADD COLUMN D3DESCRIPTION_2 VARCHAR(255) NOT NULL; ALTER TABLE oxmanufacturers ADD COLUMN D3DESCRIPTION_2 TEXT NOT NULL DEFAULT '';
ALTER TABLE oxmanufacturers ADD COLUMN D3DESCRIPTION_3 VARCHAR(255) NOT NULL; ALTER TABLE oxmanufacturers ADD COLUMN D3DESCRIPTION_3 TEXT NOT NULL DEFAULT '';
"); ");
} catch (\Exception $e) { } catch (\Exception $e) {
if ((string)$e->getCode() === '1054') { if ((string)$e->getCode() === '1054') {