Fix issue with sqlite migrations for comment_seers #503

Merge aplicado
vbrandl aplicou merge dos 1 commits de fix/sqlite-migrations em master 5 anos atrás
vbrandl comentou 5 anos atrás (Migrado de github.com)

This fixes the issue in the sqlite migrations for comment_seers.

The temporary workaround was to change the id column from id INTEGER PRIMARY KEY AUTOINCREMENT to id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT.

This change renames the table, creates a new table with the correct attributes, copies the old table over in the new one and deletes the old one.

This fixes the issue in the sqlite migrations for `comment_seers`. The temporary workaround was to change the `id` column from `id INTEGER PRIMARY KEY AUTOINCREMENT` to `id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT`. This change renames the table, creates a new table with the correct attributes, copies the old table over in the new one and deletes the old one.
elegaanz (Migrado de github.com) aprovou estas alterações 5 anos atrás
elegaanz (Migrado de github.com) deixou um comentário

Thank you. 👍

Thank you. :+1:
codecov[bot] comentou 5 anos atrás (Migrado de github.com)

Codecov Report

Merging #503 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #503   +/-   ##
=======================================
  Coverage   26.89%   26.89%           
=======================================
  Files          65       65           
  Lines        8966     8966           
=======================================
  Hits         2411     2411           
  Misses       6555     6555
# [Codecov](https://codecov.io/gh/Plume-org/Plume/pull/503?src=pr&el=h1) Report > Merging [#503](https://codecov.io/gh/Plume-org/Plume/pull/503?src=pr&el=desc) into [master](https://codecov.io/gh/Plume-org/Plume/commit/21cb0ef43786adee42065cecf053b8e525fe2c3f?src=pr&el=desc) will **not change** coverage. > The diff coverage is `n/a`. ```diff @@ Coverage Diff @@ ## master #503 +/- ## ======================================= Coverage 26.89% 26.89% ======================================= Files 65 65 Lines 8966 8966 ======================================= Hits 2411 2411 Misses 6555 6555 ```

Revisores

O pull request teve merge aplicado como f0d6b9d1e8.
Você também pode ver as instruções para a linha de comandos.

Passo 1:

No repositório do seu projeto, crie um novo branch e teste as alterações.
git checkout -b fix/sqlite-migrations master
git pull origin fix/sqlite-migrations

Passo 2:

Faça merge das alterações e atualize no Forgejo.
git checkout master
git merge --no-ff fix/sqlite-migrations
git push origin master
Acesse para participar desta conversação.
Sem revisor
Sem marco
Sem responsável
1 participante(s)
Notificações
Data limite
A data limite é inválida ou está fora do intervalo. Por favor, use o formato 'dd/mm/aaaa'.

Data limite não informada.

Dependências

Nenhuma dependência definida.

Referência: Plume/Plume#503
Carregando…
Ainda não há conteúdo.