-
-
Couldn't load subscription status.
- Fork 173
chore: changed all db:pushs to db:migrates #1151
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,10 +20,10 @@ read -p "Copy and past your auth callback url here: " URL | |
|
|
||
| echo "- Nice, now open two terminals and run the following commands: " | ||
| echo "- Terminal 1) - docker-compose up " | ||
| echo "- Terminal 2) - npm db:push, npm db:seed, npm run dev " | ||
| echo "- Terminal 2) - npm db:migrate, npm db:seed, npm run dev " | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Remaining The
🔗 Analysis chainVerify the impact of changing The command has been updated from Consider the following:
To help verify the impact, you can run the following script: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check for any remaining instances of 'db:push' and look for related database commands
echo "Checking for remaining 'db:push' instances:"
rg 'db:push' --type sh --type js --type json
echo "\nListing related database commands:"
rg 'db:(migrate|seed|reset|update)' --type sh --type js --type json
Length of output: 584 |
||
|
|
||
| # Create .env file | ||
| echo "DATABASE_URL=postgresql://postgres:secret@127.0.0.1:5432/postgres" > .env | ||
| echo "GITHUB_ID=$GITHUB_ID" >> .env | ||
| echo "GITHUB_SECRET=$GITHUB_SECRET" >> .env | ||
| echo "NEXTAUTH_URL=$URL" >> .env | ||
| echo "NEXTAUTH_URL=$URL" >> .env | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Enhance NEXTAUTH_URL setup with comments and validation Good addition of the NEXTAUTH_URL environment variable. To improve this further:
|
||
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.
💡 Codebase verification
Action Required: Update Remaining 'db:push' Instances
Found remaining instance of
db:pushinpackage.json. Please update it todb:migrateto ensure consistency across the codebase.🔗 Analysis chain
LGTM: Database setup command updated.
The change from
npm run db:pushtonpm run db:migratealigns with the PR objectives. This update should improve consistency in the database migration strategy.Let's verify if there are any remaining instances of
db:pushin the codebase:🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 61
Script:
Length of output: 68