miflo

A database schema migration tool. Supports SQLite, PostgreSQL, and libSQL.

MIT License

Stars
17
Committers
1

Bot releases are visible (Hide)

miflo - v1.0.2 Latest Release

Published by gavsidhu 9 months ago

Changelog

  • 9fb6a0c fix: added sqlite and postgres driver
  • cc646cb fix: removed env loading, not needed for command
miflo - v1.0.1

Published by gavsidhu 10 months ago

Changelog

  • 74b4a33 docs: updated README
  • 19b9f29 feat: made script executable
  • b0498ec refactor: changed migrations table name to miflo_migrations
  • 1dc2f01 feat: added install script for linux and edited mac script to install binaries directly
  • e0b15b8 fix: created clear database function to drop migrations file after each test
miflo - v1.0.0

Published by gavsidhu 10 months ago

Changelog

  • 6d1fa18 fix: use os.MkdirAll to make sure all directories exist
  • 2b1ba3a fix: replace relative paths with absolute paths
  • b9bdac2 fix: used absolute file path for cwd
  • f2e0000 refactor: deleted custom cli framework implementation
  • c6cb274 fix: removed statement that causes tests to fail if there is no env file. This prevents tests failing in github action
  • 48edf32 feat: added production enviorment
  • 3af1eff fix: removed statement that causes tests to fail if there is no env file. This prevents tests failing in github action
  • c99a66f fix: fixed unescaped sequence error
  • 823bb4c fix: added test env variables that were causing tests to fail
  • 24d6187 fix: fixed issue where temp test.db was not properly being deleted
  • e214054 feat: added libsql/sqld service
  • d049106 feat: added step to run libsql/sqld for testing
  • 102266d refactor: switched miflo to cobra cli framework
  • 1632a2d feat: added support for libsql and turso
  • 5a581ab refactor: removed driver imports
  • 6b4731b Merge branch 'main' of https://github.com/gavsidhu/miflo
  • a0c1b89 feat: added tests for miflo
  • e83a655 refactor: added cwd as a parameter for GetUnappliedMigrations
  • cf4dcdb fix: added proper error handling
  • 5f48a2c chore: added testify package to help with testing
  • 86bd13c refactor: moved env loading to commands so it does not error when running root command
  • d22268d refactor: added QueryContext method for easier testing
  • 879b2d8 fix: added return statement to error check if statement
  • f30c24d refactor: added cwd parameter to GetDirMigrations and GetUnappliedMigrations for easier testing
  • 4aa2a03 feat: added function to check if a migration name is valid
  • c8e33b3 fix: added check for a valid migration name and added error handling for os.Mkdir and os.Create functions
  • 4a15793 refactor: moved logic to check if migrations dir exists to createCmd
  • 8b3d06a add timestamp parameter to CreateMigration
  • 5d7eee5 refactor: formatting adjustment
  • 20b0525 fix: edited goreleaser to upload binaries directly
  • dcd2c26 docs: added mac installation instructions
  • 825c257 feat: added architecture detection and removed debug snippets
  • b9d5231 fix: changed exectuing to executing
  • 81e071a feat: added mac install script
  • 3638d20 chore: Added MIT license
  • c1a4b0d fix: edited spelling from miflow to miflo in description
miflo - v0.0.1

Published by gavsidhu 10 months ago

Changelog

  • 7277073 fix: remived releases, and universal_binaries and edited format
  • 3058519 fix: edited formatting
  • 9d2b2cd feat: added contents write permission
  • cbbe81d refactor: removed comments and defaults
  • ed73a95 fix: changed need to needs for goreleaser job
  • 67de55b refactor: change version command statement
  • b0aabbd chore: update workflow to use PUBLISHER_TOKEN instead of GITHUB_TOKEN
  • e0d34e7 initial commit