fix: don't use serial in postgres

This commit is contained in:
dboures 2023-06-03 12:22:25 -05:00
parent e0d677c241
commit 493ced0b00
No known key found for this signature in database
GPG Key ID: AB3790129D478852
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ pub async fn create_candles_table(pool: &Pool) -> anyhow::Result<()> {
client
.execute(
"CREATE TABLE IF NOT EXISTS candles (
id serial,
id bigint GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
market_name text,
start_time timestamptz,
end_time timestamptz,