Skip to content
Snippets Groups Projects
Commit 2dfa18b3 authored by VESSILLER's avatar VESSILLER
Browse files

FIX demat archive indexes old names in SITIV

parent 37a7007c
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,26 @@ class Version030102Date20210812020000 extends SimpleMigrationStep { ...@@ -31,7 +31,26 @@ class Version030102Date20210812020000 extends SimpleMigrationStep {
$table = $schema->getTable('dematpayslip_archive'); $table = $schema->getTable('dematpayslip_archive');
$table->dropIndex('dematpayslip_archive_id_file'); // old indexes remain in SITIV database
if ($table->hasIndex('dematpayslip_archive_pastell_id_doc')) {
$table->addUniqueIndex(['pastell_id_document'], 'demat_archive_pastell_id_doc');
}
if ($table->hasIndex('dematpayslip_archive_id_user')) {
$table->dropIndex('dematpayslip_archive_id_user');
$table->addIndex(['id_user'], 'demat_archive_id_user');
}
if ($table->hasIndex('dematpayslip_archive_dematpayslip_id_user')) {
$table->dropIndex('dematpayslip_archive_dematpayslip_id_user');
$table->addIndex(['dematpayslip_id_user'], 'demat_archive_demat_id_user');
}
if ($table->hasIndex('dematpayslip_archive_id_file')) {
$table->dropIndex('dematpayslip_archive_id_file');
}
// new indexes
if ($table->hasIndex('demat_archive_id_file')) {
$table->dropIndex('demat_archive_id_file');
}
$table->addIndex(['id_file'], 'demat_archive_id_file'); $table->addIndex(['id_file'], 'demat_archive_id_file');
return $schema; return $schema;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment