Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Unified Diff: infra/tools/antibody/cloudsql_connect.py

Issue 1235373004: Added script to generate stats on a git checkout (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@new_antibody_db_schema
Patch Set: Rebase Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « infra/tools/antibody/antibody.py ('k') | infra/tools/antibody/code_review_parse.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/tools/antibody/cloudsql_connect.py
diff --git a/infra/tools/antibody/cloudsql_connect.py b/infra/tools/antibody/cloudsql_connect.py
index c682069e52e33e464070342768974c324b0f3cb4..0975ef26a44d6d49bf858f22ef9204580d8ac2af 100644
--- a/infra/tools/antibody/cloudsql_connect.py
+++ b/infra/tools/antibody/cloudsql_connect.py
@@ -13,7 +13,7 @@ finally:
sys.path.remove('/usr/lib/python2.7/dist-packages/')
DB_INSTANCE_IP = '173.194.225.193'
-DEFAULT_DATABASE = 'ANTIBODY_DB'
+DEFAULT_DATABASE = 'ANTIBODY_2'
USERNAME = 'antibody-team'
@@ -48,11 +48,11 @@ def write_to_commit_people(cursor, rows): # pragma: no cover
def write_to_git_commit(cursor, rows): # pragma: no cover
- """hash|bug_url|timestamp|review_url|project_prj_id
+ """hash|bug_url|timestamp|review_url|project_prj_id|subject
- VARCHAR(40)|VARCHAR(200)|TIMESTAMP|VARCHAR(200)|INT
+ VARCHAR(40)|VARCHAR(200)|TIMESTAMP|VARCHAR(200)|INT|VARCHAR(500)
"""
- cursor.executemany("""REPLACE INTO git_commit VALUES (%s,%s,%s,%s,%s)""",
+ cursor.executemany("""REPLACE INTO git_commit VALUES (%s,%s,%s,%s,%s,%s)""",
rows)
« no previous file with comments | « infra/tools/antibody/antibody.py ('k') | infra/tools/antibody/code_review_parse.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698