move main seed into database

This commit is contained in:
einhornimmond 2025-11-28 19:00:31 +01:00
parent 933171d208
commit 2b9068560d
3 changed files with 6 additions and 5 deletions

View File

@ -1,10 +1,6 @@
{
"extends": ["//"],
"tasks": {
"seed": {
"dependsOn": ["database#up", "^build"],
"cache": false
},
"tasks": {
"locales": {},
"locales:fix": {},
"lint": {

View File

@ -25,6 +25,7 @@
"up": "cross-env TZ=UTC tsx migration/index.ts up",
"down": "cross-env TZ=UTC tsx migration/index.ts down",
"reset": "cross-env TZ=UTC tsx migration/index.ts reset",
"seed": "cross-env TZ=UTC NODE_ENV=development bun src/seeds/index.ts",
"up:test": "cross-env TZ=UTC DB_DATABASE=gradido_test tsx migration/index.ts up",
"up:backend_test": "cross-env TZ=UTC DB_DATABASE=gradido_test_backend tsx migration/index.ts up",
"up:federation_test": "cross-env TZ=UTC DB_DATABASE=gradido_test_federation tsx migration/index.ts up",

View File

@ -1,6 +1,10 @@
{
"extends": ["//"],
"tasks": {
"seed": {
"dependsOn": ["database#up", "^build"],
"cache": false
},
"clear": {
"cache": false
},