Skip to content

Commit 938b090

Browse files
TatevikGrtatevikg1
andauthored
Migrations (mysql psql) (#366)
* OnlyOrmTablesFilter * Current * Admin * Init migration * In progress * Fix mapping * Fix tests * Migrate * Separate MySql * Use psql * Rename indexes * PostgreSqlPlatform * MySqlSqlPlatform rename indexes * Fix: cs * Fix: test configs * Add migration template * PR agent (#365) * .coderabbit.yaml This reverts commit 2246e49. --------- Co-authored-by: Tatevik <[email protected]> * rename template * After review 0 * After review 1 * Fix MySql migrations * After review 2 --------- Co-authored-by: Tatevik <[email protected]>
1 parent 987873e commit 938b090

File tree

68 files changed

+2683
-585
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+2683
-585
lines changed

.coderabbit.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: "en-US"
2+
reviews:
3+
profile: "chill"
4+
high_level_summary: true
5+
auto_review:
6+
enabled: true
7+
base_branches:
8+
- ".*"
9+
drafts: false

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ jobs:
7575
- name: Running PHPMD
7676
run: vendor/bin/phpmd src/ text config/PHPMD/rules.xml;
7777
- name: Running PHP_CodeSniffer
78-
run: vendor/bin/phpcs --standard=config/PhpCodeSniffer/ bin/ src/ tests/ public/;
78+
run: vendor/bin/phpcs --standard=config/PhpCodeSniffer/ --ignore=*/Migrations/* bin/ src/ tests/ public/;

config/PHPMD/rules.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
PHPMD rules for phpList
55
</description>
66

7+
<exclude-pattern>*/Migrations/*</exclude-pattern>
8+
79
<!-- rules from the "clean code" rule set -->
810
<rule ref="rulesets/cleancode.xml/BooleanArgumentFlag"/>
911
<rule ref="rulesets/cleancode.xml/StaticAccess">
@@ -71,5 +73,4 @@
7173
<rule ref="rulesets/unusedcode.xml/UnusedPrivateField"/>
7274
<rule ref="rulesets/unusedcode.xml/UnusedLocalVariable"/>
7375
<rule ref="rulesets/unusedcode.xml/UnusedPrivateMethod"/>
74-
<rule ref="rulesets/unusedcode.xml/UnusedFormalParameter"/>
7576
</ruleset>

config/doctrine.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ doctrine:
1111
user: '%database_user%'
1212
password: '%database_password%'
1313
charset: UTF8
14+
use_savepoints: true
1415

1516
orm:
1617
auto_generate_proxy_classes: '%kernel.debug%'

config/doctrine_migrations.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ doctrine_migrations:
44
# 'TatevikGr\RssBundle\RssFeedBundle\Migrations': '%kernel.project_dir%/vendor/tatevikgr/rss-bundle/src/RssFeedBundle/Migrations'
55
all_or_nothing: true
66
organize_migrations: false
7+
custom_template: '%kernel.project_dir%/src/Migrations/_template_migration.php.tpl'
78
storage:
89
table_storage:
910
table_name: 'doctrine_migration_versions'

config/services.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,8 @@ services:
4545
arguments:
4646
- '@annotation_reader'
4747
- '%kernel.project_dir%/src/Domain/Model/'
48+
49+
PhpList\Core\Core\Doctrine\OnlyOrmTablesFilter:
50+
lazy: true
51+
tags:
52+
- { name: 'doctrine.dbal.schema_filter', connection: 'default' }

0 commit comments

Comments
 (0)