From 24f60aeb49533592742a3b3bc2ec6a77692a7590 Mon Sep 17 00:00:00 2001 From: Rishi Raj Jain Date: Wed, 29 May 2024 10:42:55 +0530 Subject: [PATCH] rename: pg-import --- .github/workflows/deprecate.yml | 21 --------------------- .github/workflows/mac.yml | 6 +++--- .github/workflows/ubuntu.yml | 6 +++--- README.md | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 6 files changed, 10 insertions(+), 31 deletions(-) delete mode 100644 .github/workflows/deprecate.yml diff --git a/.github/workflows/deprecate.yml b/.github/workflows/deprecate.yml deleted file mode 100644 index b28fb01..0000000 --- a/.github/workflows/deprecate.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Deprecate from npm - -on: - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - token: ${{ secrets.GH_TOKEN }} - - uses: actions/setup-node@v4 - with: - node-version-file: .nvmrc - cache: npm - - run: npm ci - - run: npm deprecate @neondatabase/migrate-pg "*" "This package is deprecated, please use `@neondatabase/pg-import` instead." - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index 5d52ddb..f40c95a 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -14,7 +14,7 @@ jobs: - name: Install dependencies run: npm install - name: Run migration on MacOS for PostgreSQL 14 - run: npx @neondatabase/migrate-pg --accept-all true --source ${{ secrets.SOURCE_PG14 }} --destination ${{ secrets.DESTINATION_PG14 }} + run: npx @neondatabase/pg-import --accept-all true --source ${{ secrets.SOURCE_PG14 }} --destination ${{ secrets.DESTINATION_PG14 }} migrate_macos_pg15: runs-on: macos-latest @@ -26,7 +26,7 @@ jobs: - name: Install dependencies run: npm install - name: Run migration on MacOS for PostgreSQL 15 - run: npx @neondatabase/migrate-pg --accept-all true --source ${{ secrets.SOURCE_PG15 }} --destination ${{ secrets.DESTINATION_PG15 }} + run: npx @neondatabase/pg-import --accept-all true --source ${{ secrets.SOURCE_PG15 }} --destination ${{ secrets.DESTINATION_PG15 }} migrate_macos_pg16: runs-on: macos-latest @@ -38,4 +38,4 @@ jobs: - name: Install dependencies run: npm install - name: Run migration on MacOS for PostgreSQL 16 - run: npx @neondatabase/migrate-pg --accept-all true --source ${{ secrets.SOURCE_PG16 }} --destination ${{ secrets.DESTINATION_PG16 }} + run: npx @neondatabase/pg-import --accept-all true --source ${{ secrets.SOURCE_PG16 }} --destination ${{ secrets.DESTINATION_PG16 }} diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 1343555..b6bb539 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -14,7 +14,7 @@ jobs: - name: Install dependencies run: npm install - name: Run migration on Ubuntu for PostgreSQL 14 - run: npx @neondatabase/migrate-pg --accept-all true --source ${{ secrets.SOURCE_PG14 }} --destination ${{ secrets.DESTINATION_PG14 }} + run: npx @neondatabase/pg-import --accept-all true --source ${{ secrets.SOURCE_PG14 }} --destination ${{ secrets.DESTINATION_PG14 }} migrate_ubuntu_pg15: runs-on: ubuntu-latest @@ -26,7 +26,7 @@ jobs: - name: Install dependencies run: npm install - name: Run migration on Ubuntu for PostgreSQL 15 - run: npx @neondatabase/migrate-pg --accept-all true --source ${{ secrets.SOURCE_PG15 }} --destination ${{ secrets.DESTINATION_PG15 }} + run: npx @neondatabase/pg-import --accept-all true --source ${{ secrets.SOURCE_PG15 }} --destination ${{ secrets.DESTINATION_PG15 }} migrate_ubuntu_pg16: runs-on: ubuntu-latest @@ -38,4 +38,4 @@ jobs: - name: Install dependencies run: npm install - name: Run migration on Ubuntu for PostgreSQL 16 - run: npx @neondatabase/migrate-pg --accept-all true --source ${{ secrets.SOURCE_PG16 }} --destination ${{ secrets.DESTINATION_PG16 }} + run: npx @neondatabase/pg-import --accept-all true --source ${{ secrets.SOURCE_PG16 }} --destination ${{ secrets.DESTINATION_PG16 }} diff --git a/README.md b/README.md index b85d052..7e1071f 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ A CLI tool for **migrating data from one PostgreSQL database to another**. ## Usage ```sh -npx @neondatabase/migrate-pg --silent false --accept-all false --source="pg-string" --destination="pg-string" +npx @neondatabase/pg-import --silent false --accept-all false --source="pg-string" --destination="pg-string" ``` ### Flags and Options diff --git a/package-lock.json b/package-lock.json index da40348..6aee40e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "@neondatabase/migrate-pg", + "name": "@neondatabase/pg-import", "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "@neondatabase/migrate-pg", + "name": "@neondatabase/pg-import", "version": "1.0.0", "license": "Apache-2.0", "dependencies": { diff --git a/package.json b/package.json index bae3d57..f915978 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "version": "1.0.0", "main": "src/index.js", "license": "Apache-2.0", - "name": "@neondatabase/migrate-pg", + "name": "@neondatabase/pg-import", "description": "A CLI tool for migrating data from one PostgreSQL database to another.", "bin": { "migrate-pg": "bin/migrate.js"