- Modify & run
dump-sequelize-schema.js.- It currently uses a few
lodashmethods, so be sure to temporarily install them—or if you feel up to it you can rewrite the script so they're not needed. npm i lodash.sortby lodash.pick lodash.omit lodash.mapvalues
- It currently uses a few
- Inspect
sequelize-schema.jsonand make sure it appears represent all of your tables, attributes, indexes, constraints, references, etc... - When you are satisfied, copy and rename
sequelize-schema.jsonfile into amigration-extras/directory that is next to yourmigrations/. Name itinitial-sequelize-schema.json.migration-extras/- ->
initial-sequelize-schema.json
- ->
migrations/- (this folder should probably be empty)
- Run
sequelize migration:createand then copy the contents of2018XXXXXXXXXX-initial-migration.jsinto the newly generated migration script. No additional modifications are required if y
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| // Adds a backface to the mesh on Start() | |
| // Source: http://answers.unity3d.com/answers/280931/view.html | |
| public class BackfaceMesh : MonoBehaviour { | |
| public void Start () { | |
| var mesh = GetComponent<MeshFilter>().mesh; | |
| var vertices = mesh.vertices; | |
| var uv = mesh.uv; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // turns `first second "third fourth fifth"` into ["first", "second", "third fourth fifth"].length === 3 | |
| const getParameters = message => Array.from((function*(string){ | |
| console.log(string); | |
| const encapsulator = ["\"", "'", "`"]; | |
| const escape = "\\"; | |
| for(let index = 0; index < string.length; index++){ | |
| const start = index; | |
| const part = string[index]; |
OlderNewer