Compare commits
No commits in common. "1.3.0" and "1.2.1" have entirely different histories.
@ -4,11 +4,7 @@ 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/),
|
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).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased](https://git.d3data.de/D3Private/SecondLongDesc/compare/1.3.0...rel_1.x)
|
## [Unreleased](https://git.d3data.de/D3Private/SecondLongDesc/compare/1.2.1...rel_1.x)
|
||||||
|
|
||||||
## [1.3.0](https://git.d3data.de/D3Private/SecondLongDesc/compare/1.2.1...1.3.0) - 2023-04-03
|
|
||||||
### Removed
|
|
||||||
- migration additional method
|
|
||||||
|
|
||||||
## [1.2.1](https://git.d3data.de/D3Private/SecondLongDesc/compare/1.1.0...1.2.1) - 2023-04-03
|
## [1.2.1](https://git.d3data.de/D3Private/SecondLongDesc/compare/1.1.0...1.2.1) - 2023-04-03
|
||||||
### Fixed
|
### Fixed
|
||||||
|
@ -31,7 +31,7 @@ $aModule = array(
|
|||||||
. 'Diese Erweiterung bietet einen zweiten Kategorielangtext.<br>' //
|
. 'Diese Erweiterung bietet einen zweiten Kategorielangtext.<br>' //
|
||||||
. 'Angezeigt wird der zweite Langtext unter der Artikelauflistung in der Listenansicht.',
|
. 'Angezeigt wird der zweite Langtext unter der Artikelauflistung in der Listenansicht.',
|
||||||
'thumbnail' => 'picture.png',
|
'thumbnail' => 'picture.png',
|
||||||
'version' => '1.3.0',
|
'version' => '1.2.1',
|
||||||
'author' => $logo.' Data Development (Inh.: Thomas Dartsch)',
|
'author' => $logo.' Data Development (Inh.: Thomas Dartsch)',
|
||||||
'email' => 'support@shopmodule.com',
|
'email' => 'support@shopmodule.com',
|
||||||
'url' => 'https://www.oxidmodule.com/',
|
'url' => 'https://www.oxidmodule.com/',
|
||||||
|
@ -9,6 +9,7 @@ use Doctrine\Migrations\AbstractMigration;
|
|||||||
use Doctrine\DBAL\Schema\Schema;
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
use Doctrine\DBAL\Schema\SchemaException;
|
use Doctrine\DBAL\Schema\SchemaException;
|
||||||
use Doctrine\DBAL\Types\TextType;
|
use Doctrine\DBAL\Types\TextType;
|
||||||
|
use OxidEsales\Eshop\Core\DatabaseProvider;
|
||||||
use OxidEsales\Eshop\Core\Exception\DatabaseConnectionException;
|
use OxidEsales\Eshop\Core\Exception\DatabaseConnectionException;
|
||||||
use OxidEsales\Eshop\Core\Exception\DatabaseErrorException;
|
use OxidEsales\Eshop\Core\Exception\DatabaseErrorException;
|
||||||
|
|
||||||
@ -25,6 +26,8 @@ final class Version20230403083243 extends AbstractMigration
|
|||||||
/**
|
/**
|
||||||
* @throws SchemaException
|
* @throws SchemaException
|
||||||
* @throws DBALException
|
* @throws DBALException
|
||||||
|
* @throws DatabaseErrorException
|
||||||
|
* @throws DatabaseConnectionException
|
||||||
*/
|
*/
|
||||||
public function up(Schema $schema) : void
|
public function up(Schema $schema) : void
|
||||||
{
|
{
|
||||||
@ -32,10 +35,9 @@ final class Version20230403083243 extends AbstractMigration
|
|||||||
|
|
||||||
$table = $schema->getTable('oxcategories');
|
$table = $schema->getTable('oxcategories');
|
||||||
|
|
||||||
if (!$table->hasColumn('D3LONGDESC2')){
|
$table->hasColumn('D3LONGDESC2') ?:
|
||||||
$table->addColumn('D3LONGDESC2', (new TextType())->getName())
|
$table->addColumn('D3LONGDESC2', (new TextType())->getName())
|
||||||
->setNotnull(true);
|
->setNotnull(true);
|
||||||
}
|
|
||||||
|
|
||||||
$table->hasColumn('D3LONGDESC2_1') ?:
|
$table->hasColumn('D3LONGDESC2_1') ?:
|
||||||
$table->addColumn('D3LONGDESC2_1', (new TextType())->getName())
|
$table->addColumn('D3LONGDESC2_1', (new TextType())->getName())
|
||||||
@ -48,6 +50,31 @@ final class Version20230403083243 extends AbstractMigration
|
|||||||
$table->hasColumn('D3LONGDESC2_3') ?:
|
$table->hasColumn('D3LONGDESC2_3') ?:
|
||||||
$table->addColumn('D3LONGDESC2_3', (new TextType())->getName())
|
$table->addColumn('D3LONGDESC2_3', (new TextType())->getName())
|
||||||
->setNotnull(true);
|
->setNotnull(true);
|
||||||
|
|
||||||
|
$this->postProcesses();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @throws DatabaseErrorException
|
||||||
|
* @throws DatabaseConnectionException
|
||||||
|
*/
|
||||||
|
public function postProcesses(){
|
||||||
|
$sAltering = 'ALTER TABLE oxcategories MODIFY
|
||||||
|
? text
|
||||||
|
CHARACTER SET latin1
|
||||||
|
COLLATE latin1_swedish_ci;';
|
||||||
|
|
||||||
|
|
||||||
|
$aAlterColumns = [
|
||||||
|
'D3LONGDESC2',
|
||||||
|
'D3LONGDESC2_1',
|
||||||
|
'D3LONGDESC2_2',
|
||||||
|
'D3LONGDESC2_3'
|
||||||
|
];
|
||||||
|
|
||||||
|
foreach ($aAlterColumns as $column){
|
||||||
|
DatabaseProvider::getDb()->execute($sAltering, $column);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function down(Schema $schema) : void
|
public function down(Schema $schema) : void
|
||||||
|
Loading…
Reference in New Issue
Block a user