修改ci/cd
This commit is contained in:
@@ -167,7 +167,7 @@ class DatabaseVersionManager:
|
|||||||
try:
|
try:
|
||||||
cursor = self.conn.cursor()
|
cursor = self.conn.cursor()
|
||||||
cursor.execute("""
|
cursor.execute("""
|
||||||
SELECT version FROM web_versionhistory
|
SELECT version FROM web_version_history
|
||||||
WHERE type = '水滴智能通讯插件' AND is_delete = FALSE
|
WHERE type = '水滴智能通讯插件' AND is_delete = FALSE
|
||||||
ORDER BY release_time DESC LIMIT 1
|
ORDER BY release_time DESC LIMIT 1
|
||||||
""")
|
""")
|
||||||
@@ -211,7 +211,7 @@ class DatabaseVersionManager:
|
|||||||
try:
|
try:
|
||||||
cursor = self.conn.cursor()
|
cursor = self.conn.cursor()
|
||||||
cursor.execute("""
|
cursor.execute("""
|
||||||
SELECT version FROM web_versionhistory
|
SELECT version FROM web_version_history
|
||||||
WHERE content LIKE %s AND type = '水滴智能通讯插件'
|
WHERE content LIKE %s AND type = '水滴智能通讯插件'
|
||||||
ORDER BY release_time DESC LIMIT 1
|
ORDER BY release_time DESC LIMIT 1
|
||||||
""", (f'%{commit_id}%',))
|
""", (f'%{commit_id}%',))
|
||||||
@@ -236,7 +236,7 @@ class DatabaseVersionManager:
|
|||||||
|
|
||||||
cursor = self.conn.cursor()
|
cursor = self.conn.cursor()
|
||||||
cursor.execute("""
|
cursor.execute("""
|
||||||
INSERT INTO web_versionhistory
|
INSERT INTO web_version_history
|
||||||
(version, type, content, download_url, release_time, is_delete)
|
(version, type, content, download_url, release_time, is_delete)
|
||||||
VALUES (%s, %s, %s, %s, %s, %s)
|
VALUES (%s, %s, %s, %s, %s, %s)
|
||||||
RETURNING id
|
RETURNING id
|
||||||
|
|||||||
Reference in New Issue
Block a user