fix(docs): update migration reset command in database.mdc

This commit is contained in:
gbuomprisco
2025-06-13 18:07:17 +08:00
parent 9033155fcd
commit ab0e1c9948
2 changed files with 2 additions and 2 deletions

View File

@@ -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.

View File

@@ -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.