1
0
Fork
You've already forked metaform
0

Uploading exports does not delete data #1

Open
opened 2024年01月27日 00:32:52 +01:00 by vhs · 0 comments
Owner
Copy link

Postgres trigger functions currently insert and upsert only. If you need to drop records from the database, here's a workaround:

droptableifexistsexportdroptableifexistspagedroptableifexistsblock

Run that to purge the DB then rerun setup.sql to start fresh.

The vision for the db is to add a closure table to define the graph hierarchy and a related table to define block order. Bill Karwin is the expert and has left quite a bit of reference material on SO as well as some videos in various talks on YouTube.

Postgres trigger functions currently insert and upsert only. If you need to drop records from the database, here's a workaround: ```sql drop table if exists export drop table if exists page drop table if exists block ``` Run that to purge the DB then rerun `setup.sql` to start fresh. The vision for the db is to add a closure table to define the graph hierarchy and a related table to define block order. Bill Karwin is the expert and has left quite a bit of [reference material on SO](https://stackoverflow.com/questions/49700342/closure-table-equivalent-for-graph-structures-in-sql) as well as some videos in various talks on YouTube.
Sign in to join this conversation.
No Branch/Tag specified
trunk
biomejs-jemalloc-error
preview
No results found.
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
vhs/metaform#1
Reference in a new issue
vhs/metaform
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?