mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 02:33:01 +00:00
DROP SCHEMA IF EXISTS drizzle CASCADE
This commit is contained in:
@@ -20,7 +20,8 @@ async function resetDatabase() {
|
|||||||
console.log("resetting database...");
|
console.log("resetting database...");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// drop and recreate the public schema to clear everything
|
// drop drizzle metadata and recreate public schema
|
||||||
|
await db.execute(sql`DROP SCHEMA IF EXISTS drizzle CASCADE`);
|
||||||
await db.execute(sql`DROP SCHEMA IF EXISTS public CASCADE`);
|
await db.execute(sql`DROP SCHEMA IF EXISTS public CASCADE`);
|
||||||
await db.execute(sql`CREATE SCHEMA public`);
|
await db.execute(sql`CREATE SCHEMA public`);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user