{"id":24714259,"url":"https://github.com/kairichard/propel-issue-decimal-default","last_synced_at":"2026-04-30T02:35:33.894Z","repository":{"id":28502189,"uuid":"32018650","full_name":"kairichard/propel-issue-decimal-default","owner":"kairichard","description":"Reproduction of propel bug with type definitions","archived":false,"fork":false,"pushed_at":"2015-03-11T13:21:29.000Z","size":352,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-02T22:44:51.062Z","etag":null,"topics":["makefile","migration","php","propel","schema"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kairichard.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-11T13:19:38.000Z","updated_at":"2017-08-21T18:01:13.000Z","dependencies_parsed_at":"2022-07-19T03:32:13.514Z","dependency_job_id":null,"html_url":"https://github.com/kairichard/propel-issue-decimal-default","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kairichard/propel-issue-decimal-default","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kairichard%2Fpropel-issue-decimal-default","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kairichard%2Fpropel-issue-decimal-default/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kairichard%2Fpropel-issue-decimal-default/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kairichard%2Fpropel-issue-decimal-default/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kairichard","download_url":"https://codeload.github.com/kairichard/propel-issue-decimal-default/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kairichard%2Fpropel-issue-decimal-default/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260895545,"owners_count":23078851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["makefile","migration","php","propel","schema"],"created_at":"2025-01-27T08:16:10.719Z","updated_at":"2026-04-30T02:35:28.871Z","avatar_url":"https://github.com/kairichard.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Propel issue \n\nWhen working with a legacy database that has field like the following\n\n```mysql\n  `field_name` decimal(10,3) DEFAULT '1.000' NOT NULL\n```\n\npropel generates a wrong migration omitting the `10,3` in the type definition\n\nThis can be reproduced using `make test` where a second migration will be created\nbecause the schema does not match with the generated migration.\n\nIf you run into trouble on OSX\n\n`Unable to open PDO connection [wrapped: SQLSTATE[HY000] [2002] No such file or directory]`\nOn Terminal, execute these commands\n\n```bash\nsudo mkdir /var/mysql/\nsudo ln -s /private/tmp/mysql.sock /var/mysql/mysql.sock\n```\n\n\nI think the schema should look like the `expected_schema.xml` to see the differences run `make migrations \u0026\u0026 diff generated-reversed-database/schema.xml expected_schema.xml`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkairichard%2Fpropel-issue-decimal-default","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkairichard%2Fpropel-issue-decimal-default","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkairichard%2Fpropel-issue-decimal-default/lists"}