File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -316,7 +316,7 @@ private function help(): void
316316
317317 private function version (): void
318318 {
319- $ version = ' 1.0.0 ' ;
319+ $ version = TBLCLASS_VERSION ;
320320
321321 echo <<<VERSION
322322\033[1mtbl-class \033[32mv {$ version }\033[0m
Original file line number Diff line number Diff line change @@ -108,16 +108,17 @@ private function createCleanTemplate(): void
108108 # PHP namespace for the generated Tbl class
109109 namespace: ""
110110
111+
111112 # ⚠ IMPORTANT
112113 # This strategy defines ALL generated constant names.
113114 # Changing it later WILL rename constants and MAY break code.
114115 #
115116 # Strategies:
116- # - full → users, users__email, fk__posts__users
117- # - short → users, usr__email, fk__posts__users
118- # - abbr → users, usr__email, fk__pst__usr
119- # - alias → users, u__email, fk__p__u
120- # - upper → USERS, USERS__EMAIL, FK__POSTS__USERS
117+ # - full → table, table__column, fk__table__references
118+ # - short → table, tbl__column, fk__table__references
119+ # - abbr → table, tbl__column, fk__tbl__ref
120+ # - alias → table, t__column, fk__t__r
121+ # - upper → TABLE, TABLE__COLUMN, FK__TABLE__REFERENCES
121122 naming:
122123 strategy: full
123124
Original file line number Diff line number Diff line change 11<?php
22
3+ define ('TBLCLASS_VERSION ' , "1.0.0 " ); // version
4+
35// Definir apenas cores que serão usadas
46define ('COLOR_RESET ' , "\033[0m " );
57define ('COLOR_RED ' , "\033[91m " ); // Erros
You can’t perform that action at this time.
0 commit comments