Skip to content

Commit ad68e46

Browse files
committed
chore: wip
1 parent f5ac872 commit ad68e46

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.stacks/core/actions/src/generate/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export async function migrations() {
125125

126126
await migrate(path, { database: database.dbms })
127127

128-
await runCommand(`npx prisma migrate --schema=${path}`)
128+
await runCommand(`npx prisma migrate dev --schema=${path}`)
129129

130130
log.success('Successfully updated migrations')
131131
}

.stacks/core/actions/src/migrate.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import { runCommands } from '@stacksjs/cli'
2-
import { frameworkPath } from '@stacksjs/path'
1+
import { migrations } from '@stacksjs/actions/generate'
32

4-
await runCommands([
5-
'pnpm install',
6-
], { cwd: frameworkPath(), verbose: true })
3+
await migrations()

.stacks/database/schema.prisma

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ model User {
1212
createdAt DateTime @default(now())
1313
updatedAt DateTime @updatedAt()
1414
}
15+

0 commit comments

Comments
 (0)