- 
                Notifications
    
You must be signed in to change notification settings  - Fork 72
 
feat(@workflow/world-postgres): implemented a script for setting up the required tables #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(@workflow/world-postgres): implemented a script for setting up the required tables #57
Conversation
…abase with the appropriate tables
          🦋 Changeset detectedLatest commit: b3d05ba The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
 Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR  | 
    
| 
           @karthikscale3 is attempting to deploy a commit to the Vercel Labs Team on Vercel. A member of the Team first needs to authorize it.  | 
    
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
| "type": "module", | ||
| "main": "dist/index.js", | ||
| "bin": { | ||
| "workflow-postgres-setup": "./bin/setup.js" | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question for @Schniz - curious if we could just keep this as the main bin? that way npx @workflow/world-postgres
i'm indifferent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a strong opinion, but I think since it's a one-time setup script separate from regular intended execution, it makes sense for it to be named like it's in the PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but will let @VaguelySerious or @Schniz do the final stamp! thank you so much :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for polishing the setup
| @@ -0,0 +1,65 @@ | |||
| #!/usr/bin/env node | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like it's not needed given we except this to either be imported by the bin (and run), or imported in a module
Summary
The
@workflow/world-postgrespackage currently requires users to manually copy and run SQL queries to set up the required database tables. This PR simplifies the setup process by:.envfile supportUsage
pnpm exec workflow-postgres-setupOutput: