sqlite schema tweaks for bandwidth_limit_journal (#606)

This commit is contained in:
Michael Quigley 2024-05-31 14:32:02 -04:00
parent 481cc7f7ad
commit d2d3adc5cc
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -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)
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);