Refine
This commit is contained in:
@@ -30,6 +30,7 @@ def copy_project(source: str, new: str) -> None:
|
|||||||
cur.execute(f'create database "{new}" with template = {source}')
|
cur.execute(f'create database "{new}" with template = {source}')
|
||||||
|
|
||||||
# 2025-02-07, WMH
|
# 2025-02-07, WMH
|
||||||
|
# copyproject会把pg中operation这个表的全部内容也加进去,我们实际项目运行一周后operation这个表会变得特别大,导致CopyProject花费的时间很长,CopyProjectEx把operation的在复制时没有一块复制过去,节省时间
|
||||||
class CopyProjectEx:
|
class CopyProjectEx:
|
||||||
@ staticmethod
|
@ staticmethod
|
||||||
def create_database(connection, new_db):
|
def create_database(connection, new_db):
|
||||||
|
|||||||
Reference in New Issue
Block a user