Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Buffalo can not create a table containing specific characters (ms_, tr_). #782

Closed
Yuutakasan opened this issue Dec 4, 2017 · 2 comments
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Yuutakasan
Copy link

Yuutakasan commented Dec 4, 2017

In the internal table naming convention, "ms_" is given to the master and "tr_" is prefixed to the transaction, but processing of the language locale misidentifies the prefix and can not create the desired table .

  • I'm trying to create a table called "ms_batch、tr_logs"

Is this a specification? Or is it a bug?

It seems that an error occurs if there is a character string in the following URL in the first character of the table.
http://www.unicode.org/cldr/charts/28/supplemental/language_plural_rules.html

  • make project
$ buffalo new maintainer --db-type mysql
  • make table
$ buffalo db create -e development

pattern 1

  • make resource
$ buffalo g resource ms_batchs name:nulls.String -s
  • buffalo run
$ buffalo dev
  • error msg
    multiple languages found in filename "ms_batchs.en-us.yaml": [ms-batchs en-us]; expected one

pattern 2

  • make resource
$ buffalo g resource tr_logs name:nulls.String log_text:nulls.String
  • buffalo run
$ buffalo dev
  • error msg
    multiple languages found in filename "tr_logs.en-us.yaml": [tr-logs en-us]; expected one
@stanislas-m stanislas-m added the bug Something isn't working label Dec 8, 2017
@stanislas-m
Copy link
Member

@Yuutakasan, can you try the fix here? #791

@stanislas-m stanislas-m self-assigned this Dec 13, 2017
markbates added a commit that referenced this issue Dec 13, 2017
Fix #782: avoid name collision with ISO lang code
@stanislas-m stanislas-m added this to the 0.10.3 milestone Dec 13, 2017
@Yuutakasan
Copy link
Author

After installing the Buffalo main unit from the development branch, I was able to confirm that I fixed it by following the same procedure.

thanx!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants