-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Troca a cor roxa pela vermelha e esconde o logo do wagtail no login * Corrige valores de pid v3, v2 e aop_pid quando há espaços extras no XML * Somente verifica se houve troca se o valor do PID foi fornecido * Melhora os comentários de PidProviderXML._complete_pids * Altera o modelo PidChange renomeando os atributos old e new e adicionando pkg_name * Remove related_items pois neste contexto não é necessário Deve ser tratando no contexto de Article * Modifica tratamento de exceção de QueryDocumentMultipleObjectsReturnedError, fazendo o registro de quantos e quais são os registros duplicados. Tentar apagá-los * Atualiza a versão de packtools para 3.2.1 * Gera migração de base de dados de pid_provider.PidProviderXML e pid_provider.PidChange
- Loading branch information
1 parent
7e88a27
commit 73df889
Showing
4 changed files
with
143 additions
and
67 deletions.
There are no files selected for viewing
74 changes: 74 additions & 0 deletions
74
pid_provider/migrations/0003_remove_xmlrelateditem_creator_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# Generated by Django 4.1.10 on 2023-08-15 14:00 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("pid_provider", "0002_pidproviderxml_origin_date"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="xmlrelateditem", | ||
name="creator", | ||
), | ||
migrations.RemoveField( | ||
model_name="xmlrelateditem", | ||
name="updated_by", | ||
), | ||
migrations.RemoveIndex( | ||
model_name="pidchange", | ||
name="pid_provide_old_74f4ac_idx", | ||
), | ||
migrations.RemoveIndex( | ||
model_name="pidchange", | ||
name="pid_provide_new_7260e5_idx", | ||
), | ||
migrations.RemoveField( | ||
model_name="pidchange", | ||
name="new", | ||
), | ||
migrations.RemoveField( | ||
model_name="pidchange", | ||
name="old", | ||
), | ||
migrations.RemoveField( | ||
model_name="pidproviderxml", | ||
name="related_items", | ||
), | ||
migrations.AddField( | ||
model_name="pidchange", | ||
name="pid_assigned", | ||
field=models.CharField( | ||
blank=True, max_length=23, null=True, verbose_name="PID assigned" | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="pidchange", | ||
name="pid_in_xml", | ||
field=models.CharField( | ||
blank=True, max_length=23, null=True, verbose_name="PID pid_in_xml" | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="pidchange", | ||
name="pkg_name", | ||
field=models.TextField(blank=True, null=True, verbose_name="Package name"), | ||
), | ||
migrations.AddIndex( | ||
model_name="pidchange", | ||
index=models.Index( | ||
fields=["pid_in_xml"], name="pid_provide_pid_in__da2270_idx" | ||
), | ||
), | ||
migrations.AddIndex( | ||
model_name="pidchange", | ||
index=models.Index( | ||
fields=["pid_assigned"], name="pid_provide_pid_ass_a06263_idx" | ||
), | ||
), | ||
migrations.DeleteModel( | ||
name="XMLRelatedItem", | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters