Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kairichard/propel-issue-decimal-zero-scale
Reproduction of propel bug with decimal scale definitions
https://github.com/kairichard/propel-issue-decimal-zero-scale
makefile migrations php propel schema
Last synced: 9 days ago
JSON representation
Reproduction of propel bug with decimal scale definitions
- Host: GitHub
- URL: https://github.com/kairichard/propel-issue-decimal-zero-scale
- Owner: kairichard
- Created: 2015-03-11T10:46:57.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-11T13:04:12.000Z (almost 10 years ago)
- Last Synced: 2023-04-12T15:06:44.686Z (almost 2 years ago)
- Topics: makefile, migrations, php, propel, schema
- Language: Makefile
- Homepage:
- Size: 348 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Propel issue
When working with a legacy database that has field like the following
```mysql
`field_name` decimal(11,0) DEFAULT NULL
```propel generates a wrong schema.xml ommitting the scale of the field
This can be reproduced using `make test` where a second migration will be created
because the schema does not match with the generated migration.If you run into trouble on OSX
`Unable to open PDO connection [wrapped: SQLSTATE[HY000] [2002] No such file or directory]`
On Terminal, execute these commands```bash
sudo mkdir /var/mysql/
sudo ln -s /private/tmp/mysql.sock /var/mysql/mysql.sock
```I think the schema should look like the `expected_schema.xml` to see the differences run `make migrations && diff generated-reversed-database/schema.xml expected_schema.xml`