René's URL Explorer Experiment


Title: automatic migrate support for containerized deploy · Issue #146 · sqlchat/sqlchat · GitHub

Open Graph Title: automatic migrate support for containerized deploy · Issue #146 · sqlchat/sqlchat

X Title: automatic migrate support for containerized deploy · Issue #146 · sqlchat/sqlchat

Description: Is your feature request related to a problem? The db schema is not initialized automatically after the service is started: 9d178106ae94:/# psql -U sqlchat_user -d sqlchat psql (14.10) Type "help" for help. sqlchat=# \l List of databases ...

Open Graph Description: Is your feature request related to a problem? The db schema is not initialized automatically after the service is started: 9d178106ae94:/# psql -U sqlchat_user -d sqlchat psql (14.10) Type "help" f...

X Description: Is your feature request related to a problem? The db schema is not initialized automatically after the service is started: 9d178106ae94:/# psql -U sqlchat_user -d sqlchat psql (14.10) Type "he...

Opengraph URL: https://github.com/sqlchat/sqlchat/issues/146

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"automatic migrate support for containerized deploy","articleBody":"### Is your feature request related to a problem?\n\nThe db schema is not initialized automatically after the service is started:\r\n\r\n```bash\r\n9d178106ae94:/# psql -U sqlchat_user -d sqlchat\r\npsql (14.10)\r\nType \"help\" for help.\r\n\r\nsqlchat=# \\l\r\n                                       List of databases\r\n   Name    |    Owner     | Encoding |  Collate   |   Ctype    |       Access privileges\r\n-----------+--------------+----------+------------+------------+-------------------------------\r\n postgres  | sqlchat_user | UTF8     | en_US.utf8 | en_US.utf8 |\r\n rbac_prod | sqlchat_user | UTF8     | en_US.utf8 | en_US.utf8 |\r\n sqlchat   | sqlchat_user | UTF8     | en_US.utf8 | en_US.utf8 |\r\n template0 | sqlchat_user | UTF8     | en_US.utf8 | en_US.utf8 | =c/sqlchat_user              +\r\n           |              |          |            |            | sqlchat_user=CTc/sqlchat_user\r\n template1 | sqlchat_user | UTF8     | en_US.utf8 | en_US.utf8 | =c/sqlchat_user              +\r\n           |              |          |            |            | sqlchat_user=CTc/sqlchat_user\r\n(5 rows)\r\n\r\nsqlchat=# \\d\r\nDid not find any relations.\r\nsqlchat=# \\dt\r\nDid not find any relations.\r\nsqlchat=#\r\n...\r\npostgres  | 2024-01-29 13:20:04.732 CST [22] LOG:  database system was shut down at 2024-01-29 13:15:06 CST\r\npostgres  | 2024-01-29 13:20:04.742 CST [1] LOG:  database system is ready to accept connections\r\npostgres  | 2024-01-29 13:37:14.614 CST [1458] ERROR:  relation \"sqlchat.users\" does not exist at character 215\r\npostgres  | 2024-01-29 13:37:14.614 CST [1458] STATEMENT:  SELECT \"sqlchat\".\"users\".\"id\", \"sqlchat\".\"users\".\"name\", \"sqlchat\".\"users\".\"email\", \"sqlchat\".\"users\".\"email_verified\", \"sqlchat\".\"users\".\"image\", \"sqlchat\".\"users\".\"stripe_id\", \"sqlchat\".\"users\".\"created_at\" FROM \"sqlchat\".\"users\" WHERE (\"sqlchat\".\"users\".\"email\" = $1 AND 1=1) LIMIT $2 OFFSET $3\r\n```\r\n\r\nand also need to connect to the database externally, and then manually execute the migration\r\n\r\n```bash\r\n➜  sqlchat git:(feat-add-org-header) ✗ pnpm prisma migrate dev\r\nEnvironment variables loaded from .env\r\nPrisma schema loaded from prisma/schema.prisma\r\nDatasource \"db\": PostgreSQL database \"sqlchat\", schema \"sqlchat\" at \"127.0.0.1:5432\"\r\n\r\nApplying migration `20230502100414_init`\r\nApplying migration `20230505101306_account_and_payment`\r\nApplying migration `20230517161946_subscription`\r\nApplying migration `20230518165639_created_at_to_users_table`\r\nApplying migration `20230521103659_separate_payment_from_subscription`\r\nApplying migration `20230521112004_remove_subscription_status_add_cancel_at`\r\n\r\nThe following migration(s) have been applied:\r\n\r\nmigrations/\r\n  └─ 20230502100414_init/\r\n    └─ migration.sql\r\n  └─ 20230505101306_account_and_payment/\r\n    └─ migration.sql\r\n  └─ 20230517161946_subscription/\r\n    └─ migration.sql\r\n  └─ 20230518165639_created_at_to_users_table/\r\n    └─ migration.sql\r\n  └─ 20230521103659_separate_payment_from_subscription/\r\n    └─ migration.sql\r\n  └─ 20230521112004_remove_subscription_status_add_cancel_at/\r\n    └─ migration.sql\r\n\r\nYour database is now in sync with your schema.\r\n```\r\n\n\n### Describe the solution you'd like\n\nadding automatic execution of database migrate when NEXT_PUBLIC_USE_DATABASE is set.\n\n### Additional context\n\n_No response_","author":{"url":"https://github.com/lushenle","@type":"Person","name":"lushenle"},"datePublished":"2024-01-29T07:07:36Z","url":"https://github.com/sqlchat/sqlchat/issues/146"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:54c55f1f-c372-4a46-7b79-5db300546c00
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC8DC:BE8D0:489BB8:663C38:6B0471B1
html-safe-noncef97935d364289b9acc49fa0ba1d95c1c23fdd0dc3a2ccd61d52d428f1040f9de
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOERDOkJFOEQwOjQ4OUJCODo2NjNDMzg6NkIwNDcxQjEiLCJ2aXNpdG9yX2lkIjoiODM1ODY1MjEwODE0NDQwNjk2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac12727f2f78bcc182b60cbea292b77f9918ddfcec1f1ae2ccda479be9565c9a45
hovercard-subject-tagissue:2104798684
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sqlchat/sqlchat/146/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9ccc6f8900769d22c65ad9967f369a36562aff516757af8706a161676d00de55/sqlchat/sqlchat/issues/146
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9ccc6f8900769d22c65ad9967f369a36562aff516757af8706a161676d00de55/sqlchat/sqlchat/issues/146
og:image:altIs your feature request related to a problem? The db schema is not initialized automatically after the service is started: 9d178106ae94:/# psql -U sqlchat_user -d sqlchat psql (14.10) Type "help" f...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelushenle
hostnamegithub.com
expected-hostnamegithub.com
Noneae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f
turbo-cache-controlno-preview
go-importgithub.com/sqlchat/sqlchat git https://github.com/sqlchat/sqlchat.git
octolytics-dimension-user_id128299021
octolytics-dimension-user_loginsqlchat
octolytics-dimension-repository_id614656648
octolytics-dimension-repository_nwosqlchat/sqlchat
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id614656648
octolytics-dimension-repository_network_root_nwosqlchat/sqlchat
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecfb5f24c6e01d85f70804652a5107e5cac03a161
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/sqlchat/sqlchat/issues/146#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlchat%2Fsqlchat%2Fissues%2F146
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlchat%2Fsqlchat%2Fissues%2F146
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=sqlchat%2Fsqlchat
Reloadhttps://github.com/sqlchat/sqlchat/issues/146
Reloadhttps://github.com/sqlchat/sqlchat/issues/146
Reloadhttps://github.com/sqlchat/sqlchat/issues/146
sqlchathttps://github.com/sqlchat
sqlchathttps://github.com/sqlchat/sqlchat
Codehttps://github.com/sqlchat/sqlchat
Issues23 (23)https://github.com/sqlchat/sqlchat/issues
Pull requests2 (2)https://github.com/sqlchat/sqlchat/pulls
Actionshttps://github.com/sqlchat/sqlchat/actions
Security and qualityhttps://github.com/sqlchat/sqlchat/security
Insightshttps://github.com/sqlchat/sqlchat/insights
https://github.com/sqlchat/sqlchat
New issuehttps://github.com/login?return_to=https://github.com/sqlchat/sqlchat/issues/146
New issuehttps://github.com/login?return_to=https://github.com/sqlchat/sqlchat/issues/146
automatic migrate support for containerized deployhttps://github.com/sqlchat/sqlchat/issues/146#top
enhancementNew feature or requesthttps://github.com/sqlchat/sqlchat/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/lushenle
lushenlehttps://github.com/lushenle
on Jan 29, 2024https://github.com/sqlchat/sqlchat/issues/146#issue-2104798684
lushenlehttps://github.com/lushenle
enhancementNew feature or requesthttps://github.com/sqlchat/sqlchat/issues?q=state%3Aopen%20label%3A%22enhancement%22
on Jan 29, 2024https://github.com/sqlchat/sqlchat/issues/146#event-11623409694
Sign up for freehttps://github.com/signup?return_to=https://github.com/sqlchat/sqlchat/issues/146
Sign in to commenthttps://github.com/login?return_to=https://github.com/sqlchat/sqlchat/issues/146
enhancementNew feature or requesthttps://github.com/sqlchat/sqlchat/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.