🎉(all) bootstrap the Calendars project
This repository was forked from Drive in late December 2025 and boostraped as a minimal demo of backend+caldav server+frontend integration. There is much left to do and to fix!
This commit is contained in:
9
bin/clear_db_e2e.sql
Normal file
9
bin/clear_db_e2e.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
DO $$
|
||||
DECLARE r RECORD;
|
||||
BEGIN
|
||||
FOR r IN (SELECT tablename FROM pg_tables WHERE schemaname = 'public' AND tablename != 'django_migrations')
|
||||
LOOP
|
||||
RAISE NOTICE 'Truncating table %', r.tablename;
|
||||
EXECUTE 'TRUNCATE TABLE ' || quote_ident(r.tablename) || ' CASCADE';
|
||||
END LOOP;
|
||||
END $$;
|
||||
Reference in New Issue
Block a user