profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/ziima/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Vlastimil Zíma ziima @CZ-NIC Prague, Czech Republic

adamalton/django-csp-reports 41

Django app for handling browser reports from Content Security Policy violations

pawamoy/django-appsettings 13

Application settings helper for Django apps.

ziima/django-multilingual-ds9 10

Yet another branch of django-multilingual with improved and legible core.

ziima/polint 4

Linter for gettext PO files

stinovlas/django-lang-switch 2

Language switch for Django

stinovlas/django-pain 2

Django application for managing bank payments and invoices.

ziima/django 1

The Web framework for perfectionists with deadlines. Now on GitHub.

ziima/django-fido 1

Django application for FIDO protocol U2F

CZ-NIC/python-cz-nia 0

Python library for communication with Czech NIA

CZ-NIC/setuptools_i18n 0

Plugin for setuptools to build and compile i18n files.

issue openedTeamWin/android_device_motorola_ocean

Can't flash twrp recovery because it's too big

I experienced the same issue as described in TeamWin/android_bootable_recovery#136 on Motorola Moto G7 power with twrp-3.5.2_10-0-ocean.img. I worked around it using older twrp-3.5.0_10-0-ocean.img.

created time in 4 days

issue commentsqlalchemy/alembic

batch_alter_table forgets unchanged Enum CHECK constraint

I got back to the issue, but I wasn't able to reproduce the erroneous behavior.

I suspect I probably forgot to add create_constraint=True to some of the migrations on the first attempt and it had impact on other migrations down the line.

sqlalchemy-bot

comment created time in a month

issue openedspoqa/sqlalchemy-utc

Mark support for newer python versions

Last version supported by the project seems to be 3.6. It seems nothing is blocking the 3.7-3.9, it just needs to be declared and tested.

created time in a month

issue commentsqlalchemy/alembic

batch_alter_table forgets unchanged Enum CHECK constraint

OK, I'm currently swamped by fixing the production, but I will definitely have to get back to this. Thanks for now.

sqlalchemy-bot

comment created time in 2 months

issue commentsqlalchemy/alembic

batch_alter_table forgets unchanged Enum CHECK constraint

I use the Enum class for the column. As I understand docs, that should be equivalent. Did I miss something else?

sqlalchemy-bot

comment created time in 2 months

issue commentsqlalchemy/alembic

batch_alter_table forgets unchanged Enum CHECK constraint

I just encountered this issue on enum fields when resolving changes from alembic 1.7, specifically #884. I'm quite confused by contradictory information on the topic.

Alembic documentation https://alembic.sqlalchemy.org/en/latest/batch.html#including-check-constraints describes how to handle custom table constraints, but it also states explicitely that

Note this only includes CHECK constraints that are explicitly stated as part of the table definition, not the CHECK constraints that are generated by datatypes such as Boolean or Enum.

Which I understand in way, that Enum constraints should be taken care of by the batch mode, but it doesn't seem to be happening, at least not on sqlite.

I'm still using SQLAlchemy 1.3 and I noticed check constraints are disabled by default since 1.4, which makes me more confused on the topic.

What's the proposed best practice for migration of non-native enums, e.g. in sqlite? Do I need to switch to SQLAchemy 1.4? Do I need to fix my migrations somehow?

sqlalchemy-bot

comment created time in 2 months

push eventziima/my-ansible

Vlastimil Zíma

commit sha eb998fd4603bd84977c6b8f9680e9612c3646945

Fix devel & system tasks

view details

Vlastimil Zíma

commit sha 22aa075a0adefb196ebc73598b771ed656886a35

Update user password & ssh key

view details

Vlastimil Zíma

commit sha 4df697bbdb6dbe6d8b839bbdbdb0f5d2dd1e95db

Delete unused packages from system

view details

push time in 2 months