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

DBMate always delets my database anytime I run a migration #551

Closed
livingforjesus opened this issue Jun 4, 2024 · 1 comment
Closed

Comments

@livingforjesus
Copy link

Description
Anytime I run dbmate migrate, my db data is cleared

  • Version: 2.16.0
  • Database: Postgres
  • Operating System: Macos(but it runs on github actions)

Steps To Reproduce

name: Run migration

on:
  push:
    branches:
      - staging
      - main

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Install DBmate
        run: |
          sudo curl -fsSL -o /usr/local/bin/dbmate https://github.com/amacneil/dbmate/releases/latest/download/dbmate-linux-amd64
          sudo chmod +x /usr/local/bin/dbmate

      - name: Run Migrations
        run: |
          dbmate -d ./database/migration --url "postgresql://postgres:postgres@***:5432/app" migrate

Expected Behavior
My db data stays the same

@amacneil
Copy link
Owner

amacneil commented Jun 5, 2024

Please provide complete steps to reproduce - e.g. docker image and sample migration files that will reproduce the issue.

@amacneil amacneil closed this as not planned Won't fix, can't repro, duplicate, stale Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants