Replies: 3 comments 2 replies
-
Your approach makes sense to me. I've sometimes use directories for separate schemas, but tables works just as well, and minimizes the chance of too many files in a single directory. :-) The only problem I recall was too many files making it difficult to find stuff. In part to address that challenge, you can specify a separate directory for previous instances of a reworked change. See Overworked for details. |
Beta Was this translation helpful? Give feedback.
-
So far, I'm using a naming scheme based on the ticket number. |
Beta Was this translation helpful? Give feedback.
-
I am organizing with separate folders, also naming I've never liked the numbering system that Django uses, so I've been avoiding numbering. I did not use a good naming convention, nor did I use subfolders for previous projects with sqitch and it quickly became a mess and really hard to figure out what was going on. I think organizing from the beginning is super helpful in the long run. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have a Sqitch project. I am trying to decide how I want to name my changes before my first release, as I know once I release I cannot rename the changes. My current plan is as follows
kebab-case
/
will be used as a prefixThis is generally how I prefer to organize files on my filesystem. For example, a change that does
CREATE TABLE foo.bar_baz
would be namedfoo/bar-baz
.Obviously, this creates a dirctory for
foo
in my deploy, revert, and verify directories. I assume that is expected considering/
is implicitly called out as a valid character in the sqitchchanges guide..When it comes to adding a single column or a making some other fix (without reworking).. I am not really sure what I'd do, yet. Maybefoo/bar-baz/add-col-a
?Are there existing practices that I should follow instead? How do you do this and have you ran into any problems with your names after releasing a version?
Beta Was this translation helpful? Give feedback.
All reactions