Skip to content

fix init script#608

Merged
dbarzin merged 1 commit intomainfrom
dev
Apr 13, 2026
Merged

fix init script#608
dbarzin merged 1 commit intomainfrom
dev

Conversation

@dbarzin
Copy link
Copy Markdown
Owner

@dbarzin dbarzin commented Apr 13, 2026

Summary by CodeRabbit

  • Chores

    • Removed deprecated example configurations from Docker environment setup.
  • Bug Fixes

    • Simplified database initialization workflow.
    • Updated database reset command behavior.

@dbarzin dbarzin merged commit b629e7d into main Apr 13, 2026
1 check was pending
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 13, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 8b9a082f-f0ff-4f8d-b91e-a6d7c680c8bf

📥 Commits

Reviewing files that changed from the base of the PR and between 4a449c7 and e799296.

📒 Files selected for processing (4)
  • database/seeds/DatabaseSeeder.php
  • docker/docker-compose.yml
  • docker/initialdb.sh
  • docker/resetdb.sh

Cache: Disabled due to data retention organization setting

Knowledge base: Disabled due to data retention organization setting


Walkthrough

These changes simplify database initialization and reset scripts by removing language-specific seeding conditional logic and the force migration flag, while cleaning up commented environment variable examples in docker-compose configuration.

Changes

Cohort / File(s) Summary
Docker Configuration
docker/docker-compose.yml
Removed commented demonstration/production environment variable examples (demo-data toggle, ISO27001 upload language, app banner test, initial DB language); retained default configuration comments and active runtime variables.
Database Initialization & Reset Scripts
docker/initialdb.sh, docker/resetdb.sh
Simplified initialdb.sh by removing conditional language-specific seeding logic based on INITIAL_DB values, now unconditionally running a single seeding command; removed --force flag from migrate:fresh:seed in resetdb.sh.
Database Seeder
database/seeds/DatabaseSeeder.php
Added blank line for formatting after user insertion statement.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 Hoppity-hop, the scripts grow lean,
No language checks, just clean cuisine!
The --force flag takes its final bow,
Simplicity reigns in config and how!

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant