mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
Fix the state of local migrations (#120)
This commit is contained in:
parent
abe1030c61
commit
6f3db07df5
8 changed files with 1072 additions and 7 deletions
0
.env
Normal file
0
.env
Normal file
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -9,7 +9,6 @@ node_modules
|
|||
Thumbs.db
|
||||
|
||||
# .env
|
||||
.env
|
||||
.env*.local
|
||||
.env*.preview
|
||||
.env*.production
|
||||
|
|
|
|||
|
|
@ -13,9 +13,10 @@
|
|||
"clean": "turbo clean --log-order grouped --output-logs new-only && rimraf .turbo",
|
||||
"services:up": "docker compose up postgres clickhouse redis roomote-dashboard -d --wait && pnpm db:push",
|
||||
"services:down": "docker compose down postgres clickhouse redis roomote-dashboard",
|
||||
"db:up": "docker compose up postgres clickhouse -d --wait && pnpm db:push",
|
||||
"db:up": "docker compose up postgres clickhouse -d --wait && pnpm --filter @roo-code-cloud/db db:migrate && pnpm --filter @roo-code-cloud/db db:test:push --force",
|
||||
"db:down": "docker compose down postgres clickhouse",
|
||||
"db:push": "pnpm --filter @roo-code-cloud/db db:push --force && pnpm --filter @roo-code-cloud/db db:test:push --force",
|
||||
"db:generate": "pnpm --filter @roo-code-cloud/db db:generate",
|
||||
"db:migrate": "pnpm --filter @roo-code-cloud/db db:migrate",
|
||||
"db:reset": "pnpm db:down && rimraf .docker/data .docker/logs && pnpm db:up"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
|||
1
packages/db/drizzle/0001_noisy_captain_stacy.sql
Normal file
1
packages/db/drizzle/0001_noisy_captain_stacy.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE "task_shares" ALTER COLUMN "organization_id" DROP NOT NULL;
|
||||
1059
packages/db/drizzle/meta/0001_snapshot.json
Normal file
1059
packages/db/drizzle/meta/0001_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -8,6 +8,13 @@
|
|||
"when": 1750457882404,
|
||||
"tag": "0000_freezing_beyonder",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 1,
|
||||
"version": "7",
|
||||
"when": 1750703234599,
|
||||
"tag": "0001_noisy_captain_stacy",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
"lint": "eslint src --ext=ts --max-warnings=0",
|
||||
"check-types": "tsc --noEmit",
|
||||
"clean": "rimraf .turbo",
|
||||
"drizzle-kit": "dotenvx run -f .env -- tsx node_modules/drizzle-kit/bin.cjs",
|
||||
"drizzle-kit": "tsx node_modules/drizzle-kit/bin.cjs",
|
||||
"db:generate": "dotenvx run -f .env.development -- drizzle-kit generate",
|
||||
"db:migrate": "dotenvx run -f .env.development -- drizzle-kit migrate",
|
||||
"db:push": "dotenvx run -f .env.development -- drizzle-kit push",
|
||||
|
|
|
|||
|
|
@ -172,9 +172,7 @@ export const taskShares = pgTable(
|
|||
{
|
||||
id: uuid('id').primaryKey().defaultRandom(),
|
||||
taskId: text('task_id').notNull(),
|
||||
orgId: text('organization_id')
|
||||
.notNull()
|
||||
.references(() => orgs.id),
|
||||
orgId: text('organization_id').references(() => orgs.id),
|
||||
createdByUserId: text('created_by_user_id')
|
||||
.notNull()
|
||||
.references(() => users.id),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue