|
37 | 37 | "aerich.ini", |
38 | 38 | "alembic.ini", |
39 | 39 | "{{cookiecutter.project_name}}/db_sa/migrations", |
| 40 | + "{{cookiecutter.project_name}}/db_ormar/migrations", |
40 | 41 | "{{cookiecutter.project_name}}/db_tortoise/migrations" |
41 | 42 | ] |
42 | 43 | }, |
| 44 | + "Alembic migrations": { |
| 45 | + "enabled": "{{cookiecutter.orm in ['ormar', 'sqlalchemy']}}", |
| 46 | + "resources": [ |
| 47 | + "alembic.ini" |
| 48 | + ] |
| 49 | + }, |
43 | 50 | "Gitlab CI": { |
44 | 51 | "enabled": "{{cookiecutter.ci_type == 'gitlab_ci'}}", |
45 | 52 | "resources": [ |
|
69 | 76 | "{{cookiecutter.project_name}}/web/api/dummy", |
70 | 77 | "{{cookiecutter.project_name}}/db_sa/dao", |
71 | 78 | "{{cookiecutter.project_name}}/db_sa/models/dummy_model.py", |
| 79 | + "{{cookiecutter.project_name}}/db_ormar/dao", |
| 80 | + "{{cookiecutter.project_name}}/db_ormar/models/dummy_model.py", |
72 | 81 | "{{cookiecutter.project_name}}/db_tortoise/dao", |
73 | 82 | "{{cookiecutter.project_name}}/db_tortoise/models/dummy_model.py", |
74 | 83 | "{{cookiecutter.project_name}}/tests/test_dummy.py", |
75 | 84 | "{{cookiecutter.project_name}}/db_sa/migrations/versions/2021-08-16-16-55_2b7380507a71.py", |
| 85 | + "{{cookiecutter.project_name}}/db_ormar/migrations/versions/2021-08-16-16-55_2b7380507a71.py", |
76 | 86 | "{{cookiecutter.project_name}}/db_tortoise/migrations/models/1_20210928165300_init_dummy_pg.sql", |
77 | 87 | "{{cookiecutter.project_name}}/db_tortoise/migrations/models/1_20210928165300_init_dummy_mysql.sql", |
78 | 88 | "{{cookiecutter.project_name}}/db_tortoise/migrations/models/1_20210928165300_init_dummy_sqlite.sql" |
|
88 | 98 | "SQLAlchemy ORM": { |
89 | 99 | "enabled": "{{cookiecutter.orm == 'sqlalchemy'}}", |
90 | 100 | "resources": [ |
91 | | - "alembic.ini", |
92 | 101 | "{{cookiecutter.project_name}}/db_sa" |
93 | 102 | ] |
94 | 103 | }, |
|
99 | 108 | "{{cookiecutter.project_name}}/db_tortoise" |
100 | 109 | ] |
101 | 110 | }, |
| 111 | + "Ormar ORM": { |
| 112 | + "enabled": "{{cookiecutter.orm == 'ormar'}}", |
| 113 | + "resources": [ |
| 114 | + "{{cookiecutter.project_name}}/db_ormar" |
| 115 | + ] |
| 116 | + }, |
102 | 117 | "Postgresql DB": { |
103 | 118 | "enabled": "{{cookiecutter.db_info.name == 'postgresql'}}", |
104 | 119 | "resources": [ |
|
0 commit comments