comando para migrar

This commit is contained in:
Cat /dev/Nulo 2023-12-23 20:32:28 -03:00
parent ea4026855e
commit c0c02313f1
2 changed files with 6 additions and 2 deletions

View file

@ -5,7 +5,7 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"migrate": "node --import tsx/esm migrate.ts"
},
"keywords": [],
"author": "",
@ -13,7 +13,8 @@
"dependencies": {
"better-sqlite3": "^9.2.2",
"drizzle-kit": "^0.20.7",
"drizzle-orm": "^0.29.1"
"drizzle-orm": "^0.29.1",
"tsx": "^4.7.0"
},
"devDependencies": {
"@types/better-sqlite3": "^7.6.8"

View file

@ -32,6 +32,9 @@ importers:
drizzle-orm:
specifier: ^0.29.1
version: 0.29.1(@types/better-sqlite3@7.6.8)(better-sqlite3@9.2.2)
tsx:
specifier: ^4.7.0
version: 4.7.0
devDependencies:
'@types/better-sqlite3':
specifier: ^7.6.8