Create database tables

This commit is contained in:
coolneng 2021-02-11 18:50:29 +01:00
parent 90eaf097bb
commit 129f0f3e71
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 1 additions and 1 deletions

View File

@ -7,3 +7,4 @@ from constants import TESTING_DB as DB
engine = create_engine(DB, connect_args={"check_same_thread": False})
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
Base = declarative_base()
Base.metadata.create_all(bind=engine)

View File

@ -22,7 +22,6 @@ in mkShell {
pg_ctl start -o "--unix_socket_directories=${data_dir} --listen_addresses='''"
fi
psql -d postgres -f ${sql_file}
alias psql='psql -d postgres'
'';
}