Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions policyd_rate_limit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ def database_init():
"""Initialize database (create the table and index)"""
with cursor() as cur:
query = """CREATE TABLE IF NOT EXISTS mail_count (
id varchar(40) NOT NULL,
id varchar(255) NOT NULL,
date bigint NOT NULL,
recipient_count int DEFAULT 1,
instance varchar(40) NOT NULL,
Expand All @@ -481,7 +481,7 @@ def database_init():

# if report is enable, also create the table for storing report datas
query_report = """CREATE TABLE IF NOT EXISTS limit_report (
id varchar(40) NOT NULL,
id varchar(255) NOT NULL,
delta int NOT NULL,
hit int NOT NULL DEFAULT 0
);"""
Expand Down