fix(docs): update migration reset command in database.mdc
This commit is contained in:
@@ -19,7 +19,7 @@ alwaysApply: true
|
|||||||
## Migrations
|
## Migrations
|
||||||
- After creating a schema, we can create a migration
|
- After creating a schema, we can create a migration
|
||||||
- Use the command `pnpm --filter web supabase:db:diff` for creating migrations from schemas
|
- Use the command `pnpm --filter web supabase:db:diff` for creating migrations from schemas
|
||||||
- After generating a migration, reset the database for applying the changes using the command `pnpm --filter web supabase:db:reset`
|
- After generating a migration, reset the database for applying the changes using the command `pnpm run supabase:web:reset`
|
||||||
|
|
||||||
## Security & RLS
|
## Security & RLS
|
||||||
- Using RLS, we must ensure that only the account owner can access the data. Always write safe RLS policies and ensure that the policies are enforced.
|
- Using RLS, we must ensure that only the account owner can access the data. Always write safe RLS policies and ensure that the policies are enforced.
|
||||||
|
|||||||
@@ -1150,7 +1150,7 @@ export async function myServerAction() {
|
|||||||
## Migrations
|
## Migrations
|
||||||
- After creating a schema, we can create a migration
|
- After creating a schema, we can create a migration
|
||||||
- Use the command `pnpm --filter web supabase:db:diff` for creating migrations from schemas
|
- Use the command `pnpm --filter web supabase:db:diff` for creating migrations from schemas
|
||||||
- After generating a migration, reset the database for applying the changes using the command `pnpm --filter web supabase:db:reset`
|
- After generating a migration, reset the database for applying the changes using the command `pnpm --filter web supabase:reset`
|
||||||
|
|
||||||
## Security & RLS
|
## Security & RLS
|
||||||
- Using RLS, we must ensure that only the account owner can access the data. Always write safe RLS policies and ensure that the policies are enforced.
|
- Using RLS, we must ensure that only the account owner can access the data. Always write safe RLS policies and ensure that the policies are enforced.
|
||||||
|
|||||||
Reference in New Issue
Block a user