Skip to content

Commit 535bc41

Browse files
gabidavilakurtisvg
authored andcommitted
Update CHAR to VARCHAR in Cloud SQL sample (GoogleCloudPlatform#2080)
1 parent eef7f5b commit 535bc41

File tree

1 file changed

+1
-1
lines changed
  • cloud-sql/postgres/sqlalchemy

1 file changed

+1
-1
lines changed

cloud-sql/postgres/sqlalchemy/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def create_tables():
8989
conn.execute(
9090
"CREATE TABLE IF NOT EXISTS votes "
9191
"( vote_id SERIAL NOT NULL, time_cast timestamp NOT NULL, "
92-
"candidate CHAR(6) NOT NULL, PRIMARY KEY (vote_id) );"
92+
"candidate VARCHAR(6) NOT NULL, PRIMARY KEY (vote_id) );"
9393
)
9494

9595

0 commit comments

Comments
 (0)