Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: podiljs/podil
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.3.0
Choose a base ref
...
head repository: podiljs/podil
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 12 commits
  • 17 files changed
  • 1 contributor

Commits on Dec 28, 2022

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4a277fb View commit details

Commits on Dec 30, 2022

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b00d4e2 View commit details

Commits on Jan 3, 2023

  1. File name validation (#19)

    Shpota authored Jan 3, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    769c44f View commit details

Commits on Jan 10, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8ad025b View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    7133ff3 View commit details

Commits on Mar 25, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ef7fb9b View commit details

Commits on Jun 20, 2023

  1. Update dependencies (#23)

    Shpota authored Jun 20, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    20db7cb View commit details

Commits on Sep 29, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4d50846 View commit details

Commits on Jan 21, 2024

  1. Update Typescript to 5.3 (#25)

    Shpota authored Jan 21, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    ac27d88 View commit details

Commits on Sep 1, 2024

  1. Update dependencies (#26)

    Shpota authored Sep 1, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    c9a22c5 View commit details
  2. Fix version name (#27)

    Shpota authored Sep 1, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    ab9da5a View commit details

Commits on Sep 29, 2024

  1. Create funding config (#28)

    Shpota authored Sep 29, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    64f896c View commit details
5 changes: 4 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -7,7 +7,10 @@
"overrides": [
],
"parserOptions": {
"project": [ "./tsconfig.json", "./test/tsconfig.json"],
"project": [
"./tsconfig.json",
"./test/tsconfig.json"
],
"ecmaVersion": "latest",
"sourceType": "module"
},
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [Shpota]
11 changes: 9 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: build

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
@@ -8,12 +10,17 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
node-version: '20.x'
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
- name: Lint
run: npm run lint
- name: Test
run: npm run test
run: |
npx nyc --reporter=lcov npm run test
- name: Covergae
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dist
node_modules
/.idea
*.DS_Store
*.DS_Store
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2022 Oleksandr Shpota
Copyright 2022 - 2024 Oleksandr Shpota

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Podil [![Build](https://github.com/podiljs/podil/actions/workflows/build.yaml/badge.svg)](https://github.com/podiljs/podil/actions/workflows/build.yaml) [![npm version](https://img.shields.io/npm/v/podil.svg?style=flat)](https://www.npmjs.com/package/podil) [![install size](https://packagephobia.com/badge?p=podil)](https://www.npmjs.com/package/podil)
## Podil [![Build](https://github.com/podiljs/podil/actions/workflows/build.yaml/badge.svg)](https://github.com/podiljs/podil/actions/workflows/build.yaml) [![Coverage Status](https://coveralls.io/repos/github/podiljs/podil/badge.svg?branch=main)](https://coveralls.io/github/podiljs/podil?branch=main) [![npm version](https://img.shields.io/npm/v/podil.svg?style=flat)](https://www.npmjs.com/package/podil) [![install size](https://packagephobia.com/badge?p=podil)](https://www.npmjs.com/package/podil)

Lightweight and secure database migration tool for Node.js and Postgres. Podil lets
you version your database by executing SQL scripts automatically on application
you version your database schema by executing SQL scripts automatically on application
startup. It keeps track of what scripts have been executed and what not which lets
you seamlessly update your database schema on every environment in the same way. Podil
saves you from mistakingly breaking your schema by storing and verifying checksums
@@ -47,14 +47,20 @@ By default, it looks for migrations in `./migrations`, you can pass a custom
folder in the following way:
```shell
await podil.migrate(connectionString, { migrationsDir: '/path/to/your/migrations' });
await podil.migrate(
connectionString,
{ migrationsDir: '/path/to/your/migrations' },
);
```
It is recommended to verify the checksums of your scripts on every run. However,
you can disable checksum verification using the `verifyChecksum` property:
```shell
await podil.migrate(connectionString, { verifyChecksum: false });
await podil.migrate(
connectionString,
{ verifyChecksum: false },
);
```
### Troubleshooting
Loading