diff --git a/controller/store/sql/sqlite3/025_v0_4_31_bandwidth_limit_journal.sql b/controller/store/sql/sqlite3/025_v0_4_31_bandwidth_limit_journal.sql index 6d9bd0fe..ffa03abb 100644 --- a/controller/store/sql/sqlite3/025_v0_4_31_bandwidth_limit_journal.sql +++ b/controller/store/sql/sqlite3/025_v0_4_31_bandwidth_limit_journal.sql @@ -11,6 +11,8 @@ create table bandwidth_limit_journal ( action string not null, rx_bytes bigint not null, tx_bytes bigint not null, - created_at timestamptz not null default(current_timestamp), - updated_at timestamptz not null default(current_timestamp) -); \ No newline at end of file + created_at timestamptz not null default(strftime('%Y-%m-%d %H:%M:%f', 'now')), + updated_at timestamptz not null default(strftime('%Y-%m-%d %H:%M:%f', 'now')) +); + +create index bandwidth_limit_journal_account_id_idx on bandwidth_limit_journal (account_id); \ No newline at end of file