Skip to content
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

New cli console && rename directory #808

Merged
merged 3 commits into from
Sep 2, 2024
Merged

New cli console && rename directory #808

merged 3 commits into from
Sep 2, 2024

Conversation

tigran90
Copy link
Contributor

@tigran90 tigran90 commented Jul 8, 2024

The scripts were rewritten and files were generated. I removed the scripts file (export_...) and moved the weight of the functionality to the normal cli console.

To launch the console you need to update composer.
further php console

Снимок экрана 2024-07-08 101430

configuration file config/app.yaml was added

to run one of the commands:
php console export:export-json

#update

new migration mechanism.
to create a new migration php console manage:create edit file db/migrations/new_migration_file.php
to accept new migration: php console manage:migrate

in new migration add column language in countries

At least it will save you from having to transfer large sql files

Снимок экрана 2024-07-08 133427

migration documentation
https://book.cakephp.org/phinx/0/en/index.html

tigran90 added 2 commits July 8, 2024 02:47
added config, normal console.
now if you run: php console you can see all the conads for generating files,
for example php console export:export-json
added config, normal console.
now if you run: php console you can see all the conads for generating files,
for example php console export:export-json
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. enhancement New feature or request labels Jul 8, 2024
@tigran90
Copy link
Contributor Author

tigran90 commented Jul 8, 2024

It’s good to move everything in scripts/vendor to /Commands

php console manage:create
php console manage:migrate

add new column lauguage to countries
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Jul 8, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 2, 2024
@dr5hn dr5hn merged commit e2fdeef into dr5hn:master Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lgtm This PR has been approved by a maintainer size:XXL This PR changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants