2017 © Pedro Peláez
 

typo3-cms-extension px_dbsequencer

image

portrino/px_dbsequencer

  • Monday, April 2, 2018
  • by portrino-dev
  • Repository
  • 6 Watchers
  • 1 Stars
  • 307 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 11 Versions
  • 4 % Grown

The README.md

TYPO3 extension px_dbsequencer

Latest Stable Version TYPO3 13 Total Downloads Monthly Downloads CI, (*1)

Database Sequencer for TYPO3, (*2)

1 Features

The PxDbsequencer extension enables the possibility to define different unique keys for the configured tables (e.g.: pages, pages_language_overlay, tt_content)., (*3)

That means, you define a global identifier, e.g. per environment, and every identifier/ primary key of the configured table(s) will be sequenced in steps of a defined offset (default: 10)., (*4)

So, if configure the global identifier "1" for your production system, then every configured table will have identifiers/ primary keys like 1, 11, 21, 31 and so on. For your staging system, you may define the global identifier "2", which than results in table identifiers like 2, 12, 22, 32 and so on., (*5)

In addition, every developer of the project can have his own global identifier as well. Therefor the risk of overriding data, that has to be migrated between systems (e.g. pages and content elements for a new feature), will be minimized., (*6)

2 Usage

2.1 Installation

Installation using Composer

The recommended way to install the extension is using composer., (*7)

Run the following command within your Composer based TYPO3 project:, (*8)

composer require portrino/px_dbsequencer

Installation as extension from TYPO3 Extension Repository (TER)

Download and install the extension with the extension manager module., (*9)

2.2 Setup

After finishing the installation, head over to the extension settings and set the system identifier, the offset and the tables you'd like to sequence., (*10)

The extension settings, like the system identifier, can also be configured depending on the current TYPO3_CONTEXT via config/system/additional.php, (*11)

SO, a possible configuration in config/system/settings.php could look like:, (*12)

return [

    ...

    'EXTENSIONS' => [

        ...

        'px_dbsequencer' => [
            'offset' => 10,
            'system' => 1,
            'tables' => 'be_groups,be_users,pages,sys_category,sys_template,tt_content',
        ],

        ...

    ],

    ...

];

and in config/system/additional.php could be something like:, (*13)

// contextual environment settings
$applicationContext = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(
    '/',
    \TYPO3\CMS\Core\Core\Environment::getContext(),
    true
);

switch ($applicationContext[0]) {
    case 'Development':
        switch ($applicationContext[1]) {
            case 'Staging':
                // TYPO3_CONTEXT: Development/Staging
                $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['px_dbsequencer']['system'] = 2;
                break;
            case 'Local':
                // TYPO3_CONTEXT: Development/Local
                $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['px_dbsequencer']['system'] = 3;
                break;
        }
        break;
    case 'Production':
        $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['px_dbsequencer']['system'] = 1;
        break;
}

3 Compatibility

PxDbsequencer TYPO3 PHP Support / Development
0.13.x 13.4 8.2 - 8.3 features, bugfixes, security updates
0.12.x 12.4 8.1 - 8.2 features, bugfixes, security updates
0.11.x 11.5 7.4 - 8.1 bugfixes, security updates
0.10.x 10.4 7.2 - 7.4 none
0.9.x 9.5 7.2 - 7.4 none
0.7.x 8.7 7.0 - 7.4 none
0.6.x 7.6 5.5 - 7.3 none

4 Authors

  • See the list of contributors who participated in this project.

The Versions

02/04 2018

0.1.2

0.1.2.0

  Sources   Download

02/04 2018

0.2.0

0.2.0.0

  Sources   Download

02/04 2018

0.3.0

0.3.0.0

  Sources   Download

02/04 2018

0.4.0

0.4.0.0

  Sources   Download

02/04 2018

0.5.0

0.5.0.0

  Sources   Download

19/01 2018

dev-typo3-8-7

dev-typo3-8-7 http://www.portrino.de

With this extension you can ensure different unique keys for the configured tables (e.g.: pages, pages_language_overlay, tt_content)

  Sources   Download

GPL-2.0-or-later

typo3 cms portrino sequencer

24/02 2017

dev-master

9999999-dev http://www.portrino.de

With this extension you can ensure different unique keys for the configured tables (e.g.: pages, pages_language_overlay, tt_content)

  Sources   Download

GPL-2.0+

typo3 cms portrino sequencer

24/02 2017

0.6.1

0.6.1.0 http://www.portrino.de

With this extension you can ensure different unique keys for the configured tables (e.g.: pages, pages_language_overlay, tt_content)

  Sources   Download

GPL-2.0+

typo3 cms portrino sequencer

25/05 2016

0.6.0

0.6.0.0 http://www.portrino.de

With this extension you can ensure different unique keys for the configured tables (e.g.: pages, pages_language_overlay, tt_content)

  Sources   Download

GPL-2.0+

typo3 cms portrino sequencer

15/12 2015

0.5.2

0.5.2.0 http://typo3.org

  Sources   Download

GPL-2.0+

The Requires

 

14/12 2015

0.5.1

0.5.1.0 http://typo3.org

  Sources   Download

GPL-2.0+