From 974af80a9b5fb325a8a0f4a17ecdc816b1dade35 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Fri, 12 Nov 2021 11:34:42 +0100 Subject: [PATCH] [db] Fix warnings and fix readme --- flaschengeist/models/__init__.py | 1 + readme.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/flaschengeist/models/__init__.py b/flaschengeist/models/__init__.py index 1b503dd..4eca8e3 100644 --- a/flaschengeist/models/__init__.py +++ b/flaschengeist/models/__init__.py @@ -44,6 +44,7 @@ class ModelSerializeMixin: class Serial(TypeDecorator): """Same as MariaDB Serial used for IDs""" + cache_ok=True impl = BigInteger().with_variant(mysql.BIGINT(unsigned=True), "mysql").with_variant(sqlite.INTEGER, "sqlite") diff --git a/readme.md b/readme.md index 133a570..7b64951 100644 --- a/readme.md +++ b/readme.md @@ -46,7 +46,7 @@ If not you need to create user and database manually do (or similar on Windows): ( echo "CREATE DATABASE flaschengeist;" echo "CREATE USER 'flaschengeist'@'localhost' IDENTIFIED BY 'flaschengeist';" - echo "GRANT ALL PRIVILEGES ON 'flaschengeist'.* TO 'flaschengeist'@'localhost';" + echo "GRANT ALL PRIVILEGES ON flaschengeist.* TO 'flaschengeist'@'localhost';" echo "FLUSH PRIVILEGES;" ) | sudo mysql