Compare commits

...

No commits in common. "rel_6.2.3_sourceGuardian_from_PHP8.0" and "rel_6.0_ionCube_from_PHP7.1" have entirely different histories.

12 changed files with 217 additions and 184 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,2 +1,14 @@
<?php ?><?php /** This Software is the property of D³ Data Development and is protected by copyright law - it is NOT Freeware. Any unauthorized use of this software without a valid license key is a violation of the license agreement and will be prosecuted by civil and criminal law. Inhaber: Thomas Dartsch Alle Rechte vorbehalten @package Herstellerinformationen @version 1.1.2.1 SourceGuardian (21.11.2024) @author Daniel Seifert support@shopmodule.com @copyright (C) 2024, D3 Data Development @see https://www.d3data.de */ ?><?php
if(!function_exists('sg_load')){$__v=phpversion();$__x=explode('.',$__v);$__v2=$__x[0].'.'.(int)$__x[1];$__u=strtolower(substr(php_uname(),0,3));$__ts=(@constant('PHP_ZTS') || @constant('ZEND_THREAD_SAFE')?'ts':'');$__f=$__f0='ixed.'.$__v2.$__ts.'.'.$__u;$__ff=$__ff0='ixed.'.$__v2.'.'.(int)$__x[2].$__ts.'.'.$__u;$__ed=@ini_get('extension_dir');$__e=$__e0=@realpath($__ed);$__dl=function_exists('dl') && function_exists('file_exists') && @ini_get('enable_dl') && !@ini_get('safe_mode');if($__dl && $__e && version_compare($__v,'5.2.5','<') && function_exists('getcwd') && function_exists('dirname')){$__d=$__d0=getcwd();if(@$__d[1]==':') {$__d=str_replace('\\','/',substr($__d,2));$__e=str_replace('\\','/',substr($__e,2));}$__e.=($__h=str_repeat('/..',substr_count($__e,'/')));$__f='/ixed/'.$__f0;$__ff='/ixed/'.$__ff0;while(!file_exists($__e.$__d.$__ff) && !file_exists($__e.$__d.$__f) && strlen($__d)>1){$__d=dirname($__d);}if(file_exists($__e.$__d.$__ff)) dl($__h.$__d.$__ff); else if(file_exists($__e.$__d.$__f)) dl($__h.$__d.$__f);}if(!function_exists('sg_load') && $__dl && $__e0){if(file_exists($__e0.'/'.$__ff0)) dl($__ff0); else if(file_exists($__e0.'/'.$__f0)) dl($__f0);}if(!function_exists('sg_load')){$__ixedurl='https://www.sourceguardian.com/loaders/download.php?php_v='.urlencode($__v).'&php_ts='.($__ts?'1':'0').'&php_is='.@constant('PHP_INT_SIZE').'&os_s='.urlencode(php_uname('s')).'&os_r='.urlencode(php_uname('r')).'&os_m='.urlencode(php_uname('m'));$__sapi=php_sapi_name();if(!$__e0) $__e0=$__ed;if(function_exists('php_ini_loaded_file')) $__ini=php_ini_loaded_file(); else $__ini='php.ini';if((substr($__sapi,0,3)=='cgi')||($__sapi=='cli')||($__sapi=='embed')){$__msg="\nPHP script '".__FILE__."' is protected by SourceGuardian and requires a SourceGuardian loader '".$__f0."' to be installed.\n\n1) Download the required loader '".$__f0."' from the SourceGuardian site: ".$__ixedurl."\n2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="\n3) Edit ".$__ini." and add 'extension=".$__f0."' directive";}}$__msg.="\n\n";}else{$__msg="<html><body>PHP script '".__FILE__."' is protected by <a href=\"https://www.sourceguardian.com/\">SourceGuardian</a> and requires a SourceGuardian loader '".$__f0."' to be installed.<br><br>1) <a href=\"".$__ixedurl."\" target=\"_blank\">Click here</a> to download the required '".$__f0."' loader from the SourceGuardian site<br>2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="<br>3) Edit ".$__ini." and add 'extension=".$__f0."' directive<br>4) Restart the web server";}}$__msg.="</body></html>";}die($__msg);exit();}}return sg_load('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');
<?php //00703
// <?php /** This Software is the property of D³ Data Development and is protected by copyright law - it is NOT Freeware. Any unauthorized use of this software without a valid license key is a violation of the license agreement and will be prosecuted by civil and criminal law. Inhaber: Thomas Dartsch Alle Rechte vorbehalten @package Herstellerinformationen @version 1.0.2.1 PHP71 (21.11.2024) @author Daniel Seifert support@shopmodule.com @copyright (C) 2024, D3 Data Development @see https://www.d3data.de */ ?>
if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_exists('dl')){@dl($__ln);}}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo("Site error: the ".(php_sapi_name()=='cli'?'ionCube':'<a href="http://www.ioncube.com">ionCube</a>')." PHP Loader needs to be installed. This is a widely used PHP extension for running ionCube protected PHP code, website security and malware blocking.\n\nPlease visit ".(php_sapi_name()=='cli'?'get-loader.ioncube.com':'<a href="http://get-loader.ioncube.com">get-loader.ioncube.com</a>')." for install assistance.\n\n");exit(199);
?>
HR+cPrrba2WxmcWFmj052mUHUQq5O6qBSvCGkT8dThv1fw3GmMhdRjF5DsfiQiQdR+zKFwC+Vc0D
+zWJ3EGcOR5rqEv1q89+YF1Mca9TS9tsUKNKwrI4efK4n46a8qs9aa+M7G3uhiv2qSFsX3NvXxWu
zqMhdpT9PpiEpez8/KIVrRjVXii8NaZgGiTAlv7Kt7vQzVqJKqkQKcYF7EvfQzD90K9clhxZWUmT
kkeZsnKjO921eiwHxpeHqaAqbYGDE2J8LQGXz+GNf0qpWfbEeU+nZ0rMOfclccaoad0R0ae0IiT4
dsYJgcJ/yJ1VBY04aheENSJ22fnJ3WxRKtArJErawcjiEHcYCvHQgu/HOs87LndQw3FxN/DW0Bht
DBqCbU0JBXJBdgrF7CsNxLX/Cjd/y7xvnpsFxB0x7Oc7alVdTGaPjd1wJnJ9MP0Smv+APr+Srk2A
WLInZOn66UGcN6PWzwjB6ybzgnUKzvrWg+a2wWkWiCb1qO3UkdNifjxGfaCFot9erudqPrc0s68M
TBIhlyJRHo1Hq67yK7DNPgRCxurRohPIzT3F47CkQH5OAybwi4A2iAMjIG6O7uWfHjCRDOLELpvH
+ssgITbB+/F9fRQ5gtTL5MONHk7FD0OwBs0lhCb2UJInHIdWG5XnCQ/diivfcbsI6M7xYu/ZhTMt
AIaW1ldWxP5sPIRq+XT2bplGfga3c6JU

View File

@ -4,33 +4,25 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [unreleased](https://git.d3data.de/D3Public/MyModule/compare/1.1.2.1...rel_1.1.x)
## [unreleased](https://git.d3data.de/D3Public/MyModule/compare/1.0.2.1...rel_1.x)
## [1.1.2.1](https://git.d3data.de/D3Public/MyModule/compare/1.1.2.0...1.1.2.1) - 2024-11-21
## [1.0.2.1](https://git.d3data.de/D3Public/MyModule/compare/1.0.2.0...1.0.2.1) - 2024-11-21
### Fixed
- tab class for Wave based theme
- encoding error when using the WYSIWYG editor
## [1.1.2.0](https://git.d3data.de/D3Public/MyModule/compare/1.1.1.0...1.1.2.0) - 2024-11-19
## [1.0.2.0](https://git.d3data.de/D3Public/MyModule/compare/1.0.1.0...1.0.2.0) - 2024-11-19
### Fixed
- show hidden save button
### Added
- hide empty HTML elements content
## [1.1.1.0](https://git.d3data.de/D3Public/MyModule/compare/1.1.0.0...1.1.1.0) - 2024-11-18
## [1.0.1.0](https://git.d3data.de/D3Public/MyModule/compare/1.0.0.0...1.0.1.0) - 2024-11-18
### Fixed
- installation instructions
- show manufacturer link on article details page, if manufacturer hasn't an icon
- prevent encoding HTML entities
### Added
- display manufacturer content as additional tab on article details page
- make displaying manufacturer tab on details page configurable
## [1.1.0.0](https://git.d3data.de/D3Public/MyModule/compare/1.0.0.0...1.1.0.0) - 2024-11-13
### Added
- installability OXID 6.2.3 - 6.5.x
## [1.0.0.0](https://git.d3data.de/D3Public/MyModule/releases/tag/1.0.0.0) - 2024-11-13
- initial release

30
Events/Events.php Normal file
View File

@ -0,0 +1,30 @@
<?php //00703
// <?php /** This Software is the property of D³ Data Development and is protected by copyright law - it is NOT Freeware. Any unauthorized use of this software without a valid license key is a violation of the license agreement and will be prosecuted by civil and criminal law. Inhaber: Thomas Dartsch Alle Rechte vorbehalten @package Herstellerinformationen @version 1.0.2.1 PHP71 (21.11.2024) @author Daniel Seifert support@shopmodule.com @copyright (C) 2024, D3 Data Development @see https://www.d3data.de */ ?>
if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_exists('dl')){@dl($__ln);}}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo("Site error: the ".(php_sapi_name()=='cli'?'ionCube':'<a href="http://www.ioncube.com">ionCube</a>')." PHP Loader needs to be installed. This is a widely used PHP extension for running ionCube protected PHP code, website security and malware blocking.\n\nPlease visit ".(php_sapi_name()=='cli'?'get-loader.ioncube.com':'<a href="http://get-loader.ioncube.com">get-loader.ioncube.com</a>')." for install assistance.\n\n");exit(199);
?>
HR+cP+o6seFcQ3+q/n0sJw2sRPs2Z3SJg8IL7lyvTGBelaZBc972EgIqdhAyQ0EtFbNOK11eFZ0b
WzHtlayTaG0wkJr99O46CBIc9kcXbLcWGV/8V32vt723DA9MAR9NhwXZ+zxILMlEH6SnBQDWI+Ox
/XQPgNR5+JDCG3YK6rSHRbT3nBmW6e+FbenDkE1HYZMRWltTcgNbkGsU5lEGC+UynHM0z3cUzRog
GJw+ZXUiJCfLhNz9orsraJ6MwkWLr2he4rmbWEGNk0qpWfbEeU+nZ0rMOfclLsdsb8/Ojr7GlKSG
d+YHgYbvEo2xybCcAOu1rkgUOB2UABTNE4IOFOpkoEg5KxNpcVRXjmPuIuU/ozXIlw09BV5doy2g
4LLDG2yZYifj7koWoDwmZPgZiX5sdWaPJkUOvzivkFnoybBD0zRDOs11l7IKX09XNZeJpMnC3UGw
z9QHyu1p/ThKwUw77OaLM8KhQZdS+j6+5EF/dlwLnqiSG4XkJKGXCzfc+qo79moOoyq3B0ct20wN
/FtgORRjqB6IFnewvpH5VpK+gOc6jSiOn9iwU0Bl5StKPbtGCsfgl/yfgICC5gYM3dl22J5B7r7d
2aLnoG27RLChSW8D1M1jvCapCoGBZz0D+ILB0Xgw9fTLwEkFUFyLkgwGbwq4V6hzJymQWiSesvFG
IiO3Av50SNJl5sFFQZdAN/rVtb4/sUP7eVt2/b0W6VLta76qcciOy9LIKksc03PrOryiRefaTgDm
5NCJyBp7hROBrhZUCYzXr77Dxadblc5Ux6NQqFDv8l2cRT6nSk5PzW974WOCbg3JVVzvBdQ8WGEW
4DUQCfh97UdjFhSp/S2UcZWlNSeOcAuwpXFm86NoRYfAG/nO8KWDMVTmuXeOc05sxK1EoNAGhiQU
Whp3wRanzhfJRIKM9PBECaf0ovgcevq8uYb2nZrfRWvts6KOd2Wzin5yPAzGIw5/ytB54UD6LYlG
tP8TGzZNfi0qa9+/micWCwC64Oh8wjgBUi1JU5JwMzSJJv10RO/Dk7djFNOTvjYjOrZFLBYe2OY8
xlKts+mz6Y26FiSQJecwHEpOD2EzPMVGq92f8AXjyfQsgKdfH3Xerdudyrn89wSV/IY2QRoD4E9d
p9YH0qOLRBJV2BvN4KPnOY/qCWiJzU3wcS4/ogvKgOhOv7SoXx4dT9JoFnxNW+zdtkfcbi4gmG1o
nwZ4fTo95IO7wgSCyaDeCH2VzIfFG0Ba+d+mEKrPLs3B5GlmaBkwuoHvCn+kfyki2XTCCnXCD64Y
UK4TQJykWU4MTBPzzC0xViH4uL5TL2UT+QNF06yEPxd4qT4pZ6W2ie3O05K978FUc6ZFdPxPbSua
CU2P8f/JrU8l34W9ABdW0PTIz82aDXQ7bwXzf+fXmSS9BZsSkIq9l6lvGT1mYkav06w4Qox3t1P1
Z0FpolAEYyA2xedLqV+FHlFVA6cNKUt8Rd6/LSWQJ73Wd+Yl2Kf4d4hwRLmVufjzk6E6pMPVdG/G
YTwtOo1nDv9+ddW0PI98V+wYtWnGw3vmgvHPBF9moRdOPLV6yGpEvVPcrVdvdLOVCWPFicTwdYgB
ooDhzuHRmAZeMo+lk2UwnABKXPEgqaIDcL935/VQZhIgme5aPicSj0Xu4IoSVtrRIQgGDBPlziCJ
a4BJDFqQ1bUkyfXX9kEwaUR+pyeLUgDkxiRrYtgkAV9qC1gEsZyIFjgW0Dr7SwXLm4Rhb9x+2xos
HuyMpHNxbbA13mn9qK13yw1xz/SEbBczwD78ZsJ7BnbWe9SEW3QBvVkRY+tRvz0P9Mu30ZzaKKSI
nJVWPHVmdJP1Wdx+GpJcvn2bgxYgYOzdvcEu0PXBqNjqbxPtFPFYiYqdI/AlwPD9WiJRVZW7ZfZr
IFFdKYAHKZkF9k/miy9JhSXYWWC=

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -2,7 +2,8 @@
# ![D3 Logo](https://logos.oxidmodule.com/d3logo_24x24.svg) Herstellerinformationen für OXID eShop
Fügt die Möglichkeit zur Langtextbeschreibung den Hersteller hinzu
Dieses Modul fügt Ihren Herstellereinstellungen einen Tab zur
detaillierten Beschreibung Ihrer Hersteller hinzu.
## Inhaltsverzeichnis
@ -16,22 +17,14 @@ Dieses Paket erfordert einen mit Composer installierten OXID eShop in einer in d
Öffnen Sie eine Kommandozeile und navigieren Sie zum Stammverzeichnis des Shops (Elternverzeichnis von source und vendor). Führen Sie die folgenden Befehle aus. Passen Sie die Pfadangaben an Ihre Installationsumgebung an.
```bash
composer require d3/manufacturerinformation:"~1.1.0"
composer require d3/manufacturerinformation:"~1.0.0"
```
Sofern nötig, bestätigen Sie bitte, dass Sie `package-name` erlauben, Code auszuführen.
```bash
./vendor/bin/oe-eshop-db_migrate migrations:migrate d3manufacturerinformation
Aktivieren Sie das Modul im Shopadmin unter "Erweiterungen -> Module".
./vendor/bin/oe-console o:m:i source/modules/d3/manufacturerinformation
./vendor/bin/oe-console o:m:deact d3manufacturerinformation
./vendor/bin/oe-console o:m:act d3manufacturerinformation
./vendor/bin/oe-eshop-db_views_generate
```
Leeren Sie anschließend den Temp Ordner des Shops.
Aktualisieren Sie anschließend die Datenbank-Views und leeren den Temp Ordner des Shops.
## Lizenz
(Stand: 13.11.2024)

View File

@ -24,14 +24,11 @@
"proprietary"
],
"require": {
"php": "^8.0",
"ext-sourceguardian": ">=14",
"oxid-esales/oxideshop-ce": "v6.6.0 - v6.14.3"
},
"require-dev": {
"oxid-esales/oxideshop-ce": "~6.14.0",
"friendsofphp/php-cs-fixer": "^3.9"
"php": "7.1 - 7.4",
"ext-ionCube-Loader": "*",
"oxid-esales/oxideshop-ce": "v6.0 - v6.5.6"
},
"require-dev": {},
"extra": {
"oxideshop": {
"blacklist-filter": [

View File

@ -17,6 +17,7 @@ declare(strict_types=1);
use D3\ManufacturerInformation\Application\Controller\Admin\ManufacturerInfoLongdesc;
use D3\ManufacturerInformation\Application\Model\Constants;
use D3\ManufacturerInformation\Events\Events;
use D3\ManufacturerInformation\Modules\Application\Model\D3ManufacturerLongDesc;
use D3\ManufacturerInformation\Modules\Application\Model\ManufacturerInfoList;
use OxidEsales\Eshop\Application\Model\Manufacturer as OEManufacturer;
@ -38,7 +39,7 @@ $aModule = [
'en' => 'adds manufacturer information to the article list',
],
'thumbnail' => 'image-file.png',
'version' => '1.1.2.1',
'version' => '1.0.2.1',
'author' => $logo.' Data Development (Inh.: Thomas Dartsch)',
'email' => 'support@shopmodule.com',
'url' => 'https://www.oxidmodule.com/',
@ -49,6 +50,10 @@ $aModule = [
OEManufacturer::class => D3ManufacturerLongDesc::class,
OEManufacturerList::class => ManufacturerInfoList::class,
],
'events' => [
'onActivate' => Events::class.'::activate',
'onDeactivate' => Events::class.'::deActivate',
],
'templates' => [
'd3manufacturerlongdesc.tpl' => 'd3/manufacturerinformation/Application/views/admin/tpl/d3manufacturer_longdesc.tpl',
],

View File

@ -1,63 +0,0 @@
<?php
/**
* Copyright (c) D3 Data Development (Inh. Thomas Dartsch)
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* https://www.d3data.de
*
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
* @author D3 Data Development - Max Buhe, Daniel Seifert <info@shopmodule.com>
* @link https://www.oxidmodule.com
*/
declare(strict_types=1);
namespace D3\ManufacturerInformation\Migrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\DBAL\Types\TextType;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20241023154223 extends AbstractMigration
{
public function getDescription(): string
{
return 'Adds the D3 manufacturer longdesc column';
}
public function up(Schema $schema): void
{
$this->connection->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');
$this->d3AddLongdescColumnToOxmanufacturers($schema);
}
public function down(Schema $schema): void
{
}
/**
* @param Schema $schema
* @return void
* @throws \Doctrine\DBAL\Schema\SchemaException
*/
public function d3AddLongdescColumnToOxmanufacturers(Schema $schema)
{
$table = !$schema->hasTable('oxmanufacturers') ?
$schema->createTable('oxmanufacturers') :
$schema->getTable('oxmanufacturers');
// Beschreibung
if (!$table->hasColumn('D3DESCRIPTION')) {
$table->addColumn('D3DESCRIPTION', (new TextType())->getName())
->setLength($this->connection->getDatabasePlatform()::LENGTH_LIMIT_TEXT)
->setNotnull(true);
}
}
}

View File

@ -1,77 +0,0 @@
<?php
/**
* Copyright (c) D3 Data Development (Inh. Thomas Dartsch)
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* https://www.d3data.de
*
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
* @author D3 Data Development - Max Buhe, Daniel Seifert <info@shopmodule.com>
* @link https://www.oxidmodule.com
*/
declare(strict_types=1);
namespace D3\ManufacturerInformation\Migrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\DBAL\Types\TextType;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20241028172608 extends AbstractMigration
{
public function getDescription(): string
{
return 'Adds multilang tables for the D3 manufacturer longdesc';
}
public function up(Schema $schema): void
{
$this->connection->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');
$this->d3AddLongdescMultilangColumnsToOxmanufacturers($schema);
}
public function down(Schema $schema): void
{
}
/**
* @param Schema $schema
* @return void
* @throws \Doctrine\DBAL\Schema\SchemaException
*/
public function d3AddLongdescMultilangColumnsToOxmanufacturers(Schema $schema)
{
$table = !$schema->hasTable('oxmanufacturers') ?
$schema->createTable('oxmanufacturers') :
$schema->getTable('oxmanufacturers');
// lang 1
if (!$table->hasColumn('D3DESCRIPTION_1')) {
$table->addColumn('D3DESCRIPTION_1', (new TextType())->getName())
->setLength($this->connection->getDatabasePlatform()::LENGTH_LIMIT_TEXT)
->setNotnull(true);
}
// lang 2
if (!$table->hasColumn('D3DESCRIPTION_2')) {
$table->addColumn('D3DESCRIPTION_2', (new TextType())->getName())
->setLength($this->connection->getDatabasePlatform()::LENGTH_LIMIT_TEXT)
->setNotnull(true);
}
// lang 3
if (!$table->hasColumn('D3DESCRIPTION_3')) {
$table->addColumn('D3DESCRIPTION_3', (new TextType())->getName())
->setLength($this->connection->getDatabasePlatform()::LENGTH_LIMIT_TEXT)
->setNotnull(true);
}
}
}

View File

@ -1,4 +0,0 @@
name: D3 manufacturerinformation
migrations_namespace: D3\ManufacturerInformation\Migrations
table_name: d3migrations_manufacturerinformation
migrations_directory: data