3 ms·
Why manually specify a key as a string instead of using an int auto_increment?
by BrandonM 16y ago
Why manually specify a key as a string instead of using an int auto_increment?
- brandon 16y agoIn this case, the key corresponds to the filename containing the migration statements. Further, consider if your company had three deployments of your product. One for bleeding edge testing, one for staging/QA, and live. You'd want the schema version to be consistent across all three schemas.
- jfb 16y agoWhy introduce an surrogate key unnecessarily?