stepwise-migrations 1.0.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/README.md +10 -3
  2. package/package.json +9 -4
package/README.md CHANGED
@@ -1,14 +1,21 @@
1
1
  # Stepwise Migrations
2
2
 
3
- A tool for managing migrations in a Postgres database.
4
- Loosely based, but in Typescript.
5
-
3
+ A tool for managing Raw SQL migrations in a Postgres database.
4
+ Loosely based on flyway.
6
5
  Only "up" migrations are supported so far, but what more do you need?
7
6
 
7
+ ## Notes
8
+
9
+ All files ending in `.sql` in the migration directory will be applied.
10
+ They are first sorted in ascending order based on filename.
11
+ No subdirectories are read below the migration directory.
12
+
8
13
  ## Usage
9
14
 
10
15
  ### Migrate
11
16
 
17
+ Command:
18
+
12
19
  ```bash
13
20
  npx stepwise-migrations migrate \
14
21
  --connection=postgresql://postgres:postgres@127.0.0.1:5432/mydb \
package/package.json CHANGED
@@ -1,14 +1,19 @@
1
1
  {
2
2
  "name": "stepwise-migrations",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "build": "tsc"
8
8
  },
9
- "keywords": [],
10
- "author": "",
11
- "license": "ISC",
9
+ "keywords": [
10
+ "migrations",
11
+ "postgres",
12
+ "raw sql",
13
+ "sql"
14
+ ],
15
+ "author": "github.com/mj1618",
16
+ "license": "MIT",
12
17
  "devDependencies": {
13
18
  "@types/pg": "^8.11.10",
14
19
  "@types/yargs": "^17.0.33"