mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: recreate snapshot table & remove old data (#4322)
* chore: recreate snapshot table & remove old data * chore: disable test * chore: fmt
This commit is contained in:
@ -0,0 +1,2 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
DROP TABLE IF EXISTS collab_snapshot;
|
@ -0,0 +1,15 @@
|
||||
-- Your SQL goes here
|
||||
-- Drop the table if it exists
|
||||
DROP TABLE IF EXISTS rocksdb_backup;
|
||||
DROP TABLE IF EXISTS collab_snapshot;
|
||||
|
||||
-- Recreate the table
|
||||
CREATE TABLE collab_snapshot (
|
||||
id TEXT NOT NULL PRIMARY KEY DEFAULT '',
|
||||
object_id TEXT NOT NULL DEFAULT '',
|
||||
title TEXT NOT NULL DEFAULT '',
|
||||
desc TEXT NOT NULL DEFAULT '',
|
||||
collab_type TEXT NOT NULL DEFAULT '',
|
||||
timestamp BIGINT NOT NULL DEFAULT 0,
|
||||
data BLOB NOT NULL DEFAULT (x'')
|
||||
);
|
@ -12,14 +12,6 @@ diesel::table! {
|
||||
}
|
||||
}
|
||||
|
||||
diesel::table! {
|
||||
rocksdb_backup (object_id) {
|
||||
object_id -> Text,
|
||||
timestamp -> BigInt,
|
||||
data -> Binary,
|
||||
}
|
||||
}
|
||||
|
||||
diesel::table! {
|
||||
user_data_migration_records (id) {
|
||||
id -> Integer,
|
||||
@ -56,7 +48,6 @@ diesel::table! {
|
||||
|
||||
diesel::allow_tables_to_appear_in_same_query!(
|
||||
collab_snapshot,
|
||||
rocksdb_backup,
|
||||
user_data_migration_records,
|
||||
user_table,
|
||||
user_workspace_table,
|
||||
|
Reference in New Issue
Block a user