Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/reset migratus #264

Merged
merged 5 commits into from
Nov 22, 2023
Merged

Dev/reset migratus #264

merged 5 commits into from
Nov 22, 2023

Conversation

gmsvalente
Copy link
Contributor

Title: Reset action for migratus

Description

Rewrite reset action for migratus. Cicada-backend uses it.

Tester info

  • create a xiana app with deps templates
    clojure -Sdeps '{:deps {io.github.flexiana/templates {:git/sha "b724a0699dc6695f58c5ec6dd2bd0b706a73a6d9"}}}' -Tnew create :template flexiana/xiana :name xiana-test
  • move to the created directory(xiana-test)
  • launch db
    docker compose up db
  • change in deps.edn the framework coordinates to :local/root to location (possible '../framework')
    com.flexiana/framework      {:local/root  "../framework"}
  • start nrepl and start the system
    cider-jack-in
    (start-dev-system)
  • go to browser url http://localhost:3000/ 3 times
  • Using DBWeaver or psql connect to database and check 3 sessions in xiana-test db and sessions table
  • At the root of xiana-test directory run
    clojure -M:migrate reset --config config/dev/config.edn
  • look again the table sessions as above and check that there is no sessions

Completion Checklist

  • Add description of the changes made here to the changelog file
  • Update the documentation as necessary

Copy link
Contributor

@soulflyer soulflyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@gmsvalente gmsvalente marked this pull request as ready for review November 22, 2023 10:42
@gmsvalente gmsvalente merged commit 112275c into main Nov 22, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants