Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Calculate ¶
Calculate determines the hashes migrations and attaches them to the context.
*
- Each file name is hashed along with the hash of the previous file name;
- This means that if any file is added, removed, or renamed it will break
- the hash chain and invalidate any database that was created after.
- The file contents is then hashed with the chained file name hash; This means that if the contents of a file changes, it will invalidate the database only for that migration, but not any subsiquent databases.
* *
Types ¶
Click to show internal directories.
Click to hide internal directories.