chore: add custom folder prompt (#3961)

* chore: add custom folder prompt

* chore: zip collab db

* chore: fix test

* chore: add test

* chore: fmt

* chore: fmt

* chore: fmt
This commit is contained in:
Nathan.fooo
2023-11-20 20:54:47 +08:00
committed by GitHub
parent 6f83f41c2d
commit b9ecc7ceb6
67 changed files with 1423 additions and 551 deletions

View File

@ -0,0 +1,2 @@
-- This file should undo anything in `up.sql`
DROP TABLE rocksdb_backup;

View File

@ -0,0 +1,6 @@
-- Your SQL goes here
CREATE TABLE rocksdb_backup (
object_id TEXT NOT NULL PRIMARY KEY,
timestamp BIGINT NOT NULL DEFAULT 0,
data BLOB NOT NULL DEFAULT (x'')
);

View File

@ -12,6 +12,14 @@ diesel::table! {
}
}
diesel::table! {
rocksdb_backup (object_id) {
object_id -> Text,
timestamp -> BigInt,
data -> Binary,
}
}
diesel::table! {
user_data_migration_records (id) {
id -> Integer,
@ -48,6 +56,7 @@ diesel::table! {
diesel::allow_tables_to_appear_in_same_query!(
collab_snapshot,
rocksdb_backup,
user_data_migration_records,
user_table,
user_workspace_table,