Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Add sql file for creating tables - #239

Open
liyanhui1228 wants to merge 3 commits into
GoogleCloudPlatform:masterfrom
liyanhui1228:mysql
Open

Add sql file for creating tables#239
liyanhui1228 wants to merge 3 commits into
GoogleCloudPlatform:masterfrom
liyanhui1228:mysql

Conversation

@liyanhui1228

Copy link
Copy Markdown
Member

No description provided.

Comment threadsql_schema/create_table.sql Outdated
@@ -0,0 +1,6 @@
CREATE TABLE self_compatibility_status (install_name VARCHAR(200), status VARCHAR(20), py_version VARCHAR(5), timestamp TIMESTAMP, details VARCHAR(5000), PRIMARY KEY (install_name, py_version));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a text type that you can use instead of VARCHAR(5000)? I think that you only need VARCHAR to support queries). Why is py_version 5 characters?

@@ -0,0 +1,5 @@
CREATE TABLE self_compatibility_status (install_name VARCHAR(200), status VARCHAR(20), py_version VARCHAR(1), timestamp TIMESTAMP, details TEXT, PRIMARY KEY (install_name, py_version));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like, in the production table, the timestamp is auto-updating?

Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@liyanhui1228@brianquinlan@googlebot