Skip to content

Conversation

@jsimonweb
Copy link
Contributor

Fixes #2306

@jsimonweb jsimonweb requested a review from a team August 4, 2021 18:54
@jsimonweb jsimonweb requested a review from a team as a code owner August 4, 2021 18:54
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Aug 4, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 4, 2021
Copy link
Member

@enocom enocom left a comment

Choose a reason for hiding this comment

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

I ran this locally against an instance without the votes table and confirmed it works as expected.

table.specificType('candidate', 'CHAR(6)').notNullable();
});
}
console.log("Ensured that table 'votes' exists");
Copy link
Member

Choose a reason for hiding this comment

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

This should probably be logger.info or whatever is appropriate for winston.

@bcoe
Copy link

bcoe commented Aug 5, 2021

@jsimonweb looks good to me, but there do appear to be two failing links when tests run:

Error: [404] https://github.com/GoogleCloudPlatform/nodejs-docs-samples/tree/update-cloud-sql-postgres-sample/appengine
Error: [404] https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/update-cloud-sql-postgres-sample/CONTRIBUTING.md

Any idea what's referencing these, such that we might fix the links?

@jsimonweb jsimonweb requested a review from bcoe August 16, 2021 22:25
@jsimonweb
Copy link
Contributor Author

@bcoe

Any idea what's referencing these, such that we might fix the links?

Looks like these links might have been caused by the recent change to rename the repo's main branch and not a result of this PR.

Merged branch 'main' into update-cloud-sql-postgres-sample branch to sync PR with 'main'.

@sofisl
Copy link
Collaborator

sofisl commented Aug 18, 2021

Given that we've merged this: #2314 (review)

I think we need to make the Kokoro config changes first so that tests can run on this PR. I'll make sure to make any necessary to changes to this PR for it to pass.

@sofisl sofisl closed this Aug 18, 2021
@sofisl sofisl reopened this Aug 18, 2021
@JustinBeckwith JustinBeckwith merged commit 0271c36 into GoogleCloudPlatform:main Aug 23, 2021
noerog pushed a commit that referenced this pull request Sep 2, 2022
* Update Cloud SQL Postgres sample to create table

* Remove test for createTable.js script

* Lint.

* Address review comment.

Co-authored-by: sofisl <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cloud SQL Postgres sample requires user run a createTable.js script

5 participants