Allow case sensitive
This commit is contained in:
@@ -26,7 +26,7 @@ def have_project(name: str) -> bool:
|
|||||||
def copy_project(source: str, new: str) -> None:
|
def copy_project(source: str, new: str) -> None:
|
||||||
with pg.connect(conninfo="dbname=postgres host=127.0.0.1", autocommit=True) as conn:
|
with pg.connect(conninfo="dbname=postgres host=127.0.0.1", autocommit=True) as conn:
|
||||||
with conn.cursor() as cur:
|
with conn.cursor() as cur:
|
||||||
cur.execute(f"create database {new} with template = {source}")
|
cur.execute(f'create database "{new}" with template = {source}')
|
||||||
|
|
||||||
|
|
||||||
def create_project(name: str) -> None:
|
def create_project(name: str) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user