Run how to create UPPERCASE columns

I am updating an old project that uses Propel 1.6

I added the required table to the schema.xml file and was about to generate it when I realized that I did not have propel_generate.

So, I set propel / propel_generator through the pear.

Now that I have generated my om, all the created TableMap files have lowercase column names, where they were uppercase:

Before:

$this->addColumn('FIRSTNAME', 'Firstname', 'VARCHAR', true, 255, null); $this->addColumn('SURNAME', 'Surname', 'VARCHAR', true, 255, null); 

Now:

 $this->addColumn('FIRSTNAME', 'Firstname', 'VARCHAR', true, 255, null); $this->addColumn('SURNAME', 'Surname', 'VARCHAR', true, 255, null); 

Does anyone know what I need to change to generate uppercase names?

+6
source share
1 answer

After much trial and error, redefining my propel_generator to version 1.6.1, and my phing to version 2.3.3 returned it back to UPPERCASE!

As halfer is mentioned, I'm not sure if this is an unintended change in behavior or if there is a configuration parameter that needs to be changed somewhere. I will open an error in the project.

+1
source

Source: https://habr.com/ru/post/955483/


All Articles