diff --git a/pyproject.toml b/pyproject.toml index b711f7f..f982e3b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "nonebot-plugin-access-control" -version = "1.1.4" +version = "1.1.5" description = "" authors = ["ssttkkl "] license = "MIT" diff --git a/src/nonebot_plugin_access_control/orm_migrations/96ced46e72e9_data_migrate.py b/src/nonebot_plugin_access_control/orm_migrations/96ced46e72e9_data_migrate.py index d2f866d..9870ef5 100644 --- a/src/nonebot_plugin_access_control/orm_migrations/96ced46e72e9_data_migrate.py +++ b/src/nonebot_plugin_access_control/orm_migrations/96ced46e72e9_data_migrate.py @@ -75,7 +75,7 @@ async def data_migrate(conn: AsyncConnection): # nonebot_plugin_access_control_rate_limit_rule result = await ds_sess.stream( sa.text( - "SELECT id, subject, service, time_span, `limit`, overwrite " + 'SELECT id, subject, service, time_span, "limit", overwrite ' "FROM nonebot_plugin_access_control_rate_limit_rule;" ) ) @@ -83,7 +83,7 @@ async def data_migrate(conn: AsyncConnection): id, subject, service, time_span, limit, overwrite = row await conn.execute( sa.text( - "INSERT INTO accctrl_rate_limit_rule (id, subject, service, time_span, `limit`, overwrite) " + 'INSERT INTO accctrl_rate_limit_rule (id, subject, service, time_span, "limit", overwrite) ' "VALUES (:id, :subject, :service, :time_span, :limit, :overwrite);" ), [ @@ -106,7 +106,7 @@ async def data_migrate(conn: AsyncConnection): # nonebot_plugin_access_control_rate_limit_token result = await ds_sess.stream( sa.text( - "SELECT id, rule_id, `user`, acquire_time, expire_time " + 'SELECT id, rule_id, "user", acquire_time, expire_time ' "FROM nonebot_plugin_access_control_rate_limit_token;" ) ) @@ -114,7 +114,7 @@ async def data_migrate(conn: AsyncConnection): id, rule_id, user, acquire_time, expire_time = row await conn.execute( sa.text( - "INSERT INTO accctrl_rate_limit_rule (id, rule_id, `user`, acquire_time, expire_time) " + 'INSERT INTO accctrl_rate_limit_rule (id, rule_id, "user", acquire_time, expire_time) ' "VALUES (:id, :rule_id, :user, :acquire_time, :expire_time);" ), [