@boxctl/migrate 1.0.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +34 -1
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -1 +1,34 @@
1
- # migrate
1
+ # @boxctl/migrate
2
+
3
+ Minimal SQL migration tool for MySQL/MariaDB over Unix socket.
4
+
5
+ > **Note:** This tool was created for very specific needs. If it doesn't fit yours, don't use it.
6
+
7
+ ## Usage
8
+
9
+ ```bash
10
+ npx @boxctl/migrate <command>
11
+ ```
12
+
13
+ ### Commands
14
+
15
+ - `create <name>` — Create a new migration
16
+ - `up` — Run pending migrations
17
+ - `down` — Rollback the last migration
18
+ - `status` — Show migration status
19
+
20
+ ## Setup
21
+
22
+ Create a `.env` file in your project root:
23
+
24
+ ```
25
+ DB_SOCKET=/var/run/mysqld/mysqld.sock
26
+ DB_NAME=your_database
27
+ DB_USER=username
28
+ DB_PASS=********
29
+ ```
30
+
31
+ ## Requirements
32
+
33
+ - Node.js >= 24
34
+ - MySQL/MariaDB with Unix socket access
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boxctl/migrate",
3
- "version": "1.0.0",
3
+ "version": "1.1.2",
4
4
  "description": "Minimal SQL migration tool for MySQL/MariaDB over Unix socket",
5
5
  "type": "module",
6
6
  "bin": {
@@ -13,10 +13,10 @@
13
13
  "access": "public"
14
14
  },
15
15
  "dependencies": {
16
- "dotenv": "^16.0.0",
17
- "mysql2": "^3.0.0"
16
+ "dotenv": "^17.3.1",
17
+ "mysql2": "^3.20.0"
18
18
  },
19
19
  "engines": {
20
- "node": ">=20.0.0"
20
+ "node": ">=24.0.0"
21
21
  }
22
22
  }