Removes all tables that are part of the default CollegeDB schema from the specified database. This is a destructive operation that cannot be undone.
DANGER: This operation permanently deletes all data in the affected tables. Only use during development, testing, or complete system resets.
The D1 database instance to drop tables from
The table schemas to drop
Promise that resolves when all tables are dropped
// Only use in development/testing environments!if (process.env.NODE_ENV === 'development') { await dropSchema(env.DB_TEST); console.log('Test database reset completed');} Copy
// Only use in development/testing environments!if (process.env.NODE_ENV === 'development') { await dropSchema(env.DB_TEST); console.log('Test database reset completed');}
Removes all tables that are part of the default CollegeDB schema from the specified database. This is a destructive operation that cannot be undone.
DANGER: This operation permanently deletes all data in the affected tables. Only use during development, testing, or complete system resets.