fix: don't use serial in postgres
This commit is contained in:
parent
e0d677c241
commit
493ced0b00
|
@ -87,7 +87,7 @@ pub async fn create_candles_table(pool: &Pool) -> anyhow::Result<()> {
|
||||||
client
|
client
|
||||||
.execute(
|
.execute(
|
||||||
"CREATE TABLE IF NOT EXISTS candles (
|
"CREATE TABLE IF NOT EXISTS candles (
|
||||||
id serial,
|
id bigint GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
|
||||||
market_name text,
|
market_name text,
|
||||||
start_time timestamptz,
|
start_time timestamptz,
|
||||||
end_time timestamptz,
|
end_time timestamptz,
|
||||||
|
|
Loading…
Reference in New Issue