Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Remove electoral_income_history da tabela Politician #214

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arielbello
Copy link
Collaborator

Contexto

A tabela de Politician tinha um campo electoral_income_history que está no banco, porém não reflete o modelo Politician no código, causando um problema de constraint ao tentar inserir novos politicians

Solução

Uma migração em sql puro para remover o campo perdido da tabela (não funciona usar o django ORM, já que o campo não aparece no modelo)

@arielbello arielbello added the bug Something isn't working label Sep 19, 2022
@arielbello arielbello requested a review from ogecece September 19, 2022 22:56
@arielbello arielbello self-assigned this Sep 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant