Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
corect sql data
Browse files Browse the repository at this point in the history
  • Loading branch information
kotorkovsciy committed Aug 19, 2022
1 parent f36640b commit e501a97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/sql_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(self, database):
f"SELECT 1 FROM pg_catalog.pg_database WHERE datname = '{self._database}'")
exists = self._cursor.fetchone()
if not exists:
self._cursor.execute(f'CREATE _database {self._database}')
self._cursor.execute(f'CREATE database {self._database}')
self._cursor.execute("""CREATE TABLE IF NOT EXISTS users (
id BIGSERIAL NOT NULL PRIMARY KEY,
user_id BIGINT NOT NULL
Expand Down

0 comments on commit e501a97

Please sign in to comment.