https://github.com/SoftwareHeritage/swh-storage
Revision 1a8924be8f7da912cc4bcd6ce2f749b9454dcbad authored by Antoine R. Dumont (@ardumont) on 11 July 2020, 06:42:17 UTC, committed by Antoine R. Dumont (@ardumont) on 11 July 2020, 06:52:26 UTC
In the end, the order of the revision entry matters whether we select * or not.
So the select must match the order defined in the revision_entry type type.
Otherwise, a mismatch type error occurs [1]

[1] psql:sql/upgrades/158.sql:74: ERROR: return type mismatch in function
declared to return revision_entry
1 parent 9219a23
History
Tip revision: 1a8924be8f7da912cc4bcd6ce2f749b9454dcbad authored by Antoine R. Dumont (@ardumont) on 11 July 2020, 06:42:17 UTC
158: Make schema and migration converge so the migration works
Tip revision: 1a8924b
File Mode Size
bin
docs
sql
swh
.gitignore -rw-r--r-- 136 bytes
.pre-commit-config.yaml -rw-r--r-- 1.1 KB
AUTHORS -rw-r--r-- 112 bytes
CODE_OF_CONDUCT.md -rw-r--r-- 3.3 KB
CONTRIBUTORS -rw-r--r-- 46 bytes
LICENSE -rw-r--r-- 34.3 KB
MANIFEST.in -rw-r--r-- 242 bytes
Makefile -rw-r--r-- 163 bytes
Makefile.local -rw-r--r-- 69 bytes
README.md -rw-r--r-- 4.5 KB
conftest.py -rw-r--r-- 294 bytes
mypy.ini -rw-r--r-- 1.2 KB
pyproject.toml -rw-r--r-- 39 bytes
pytest.ini -rw-r--r-- 392 bytes
requirements-swh-journal.txt -rw-r--r-- 19 bytes
requirements-swh.txt -rw-r--r-- 71 bytes
requirements-test.txt -rw-r--r-- 318 bytes
requirements.txt -rw-r--r-- 99 bytes
setup.cfg -rw-r--r-- 247 bytes
setup.py -rwxr-xr-x 2.5 KB
tox.ini -rw-r--r-- 637 bytes

README.md

back to top