prisma-php 0.0.6 → 0.0.7

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.
@@ -193,13 +193,23 @@ Use this flow:
193
193
  3. confirm that `DATABASE_URL` exists
194
194
  4. resolve the SQLite file path from `DATABASE_URL`
195
195
  5. confirm the path is valid for the project
196
- 6. if the SQLite database file is missing, invalid, or not initialized yet, run:
196
+ 6. when the user is using SQLite, prefer saving the database file inside the local `./prisma` directory
197
+ 7. for the normal local setup, use:
198
+
199
+ ```env
200
+ DATABASE_URL="file:./prisma/dev.db"
201
+ ```
202
+
203
+ 8. confirm the resolved path points to a valid project-local SQLite file such as `./prisma/dev.db`
204
+ 9. do not point the SQLite file at an unrelated root-level location when the project is using the standard Prisma PHP layout
205
+ 10. if the `./prisma` directory is the intended storage location, the SQLite database file should be created and saved there
206
+ 11. if the SQLite database file is missing, invalid, or not initialized yet, run:
197
207
 
198
208
  ```bash
199
209
  npx prisma migrate dev
200
210
  ```
201
211
 
202
- 7. after migration succeeds, run:
212
+ 12. after migration succeeds, run:
203
213
 
204
214
  ```bash
205
215
  npx ppo generate
@@ -209,6 +219,7 @@ Important SQLite rule:
209
219
 
210
220
  - if Prisma PHP reports that the SQLite database file was not found or could not be created, AI must not stop at `npx ppo generate`
211
221
  - in that situation, the database initialization or migration step is still required
222
+ - when `.env` uses `DATABASE_URL="file:./prisma/dev.db"`, treat `./prisma` as the expected directory for the SQLite database file
212
223
 
213
224
  ## MySQL and PostgreSQL workflow
214
225
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prisma-php",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "Prisma PHP tooling",
5
5
  "main": "index.js",
6
6
  "scripts": {