From 8621c88a3ce088808b64fe03a4771dac7c62de7a Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Thu, 17 Nov 2022 16:56:43 +0100 Subject: [PATCH] Use int8 for `scan_id` and `inode` in Postgres --- .../collab/migrations/20221111092550_reconnection_support.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/collab/migrations/20221111092550_reconnection_support.sql b/crates/collab/migrations/20221111092550_reconnection_support.sql index 50a4a7154b5c433ea865d1b49bae423b64f044bf..de29f0c878ca0b710f5796a70b49ce0720080418 100644 --- a/crates/collab/migrations/20221111092550_reconnection_support.sql +++ b/crates/collab/migrations/20221111092550_reconnection_support.sql @@ -15,7 +15,7 @@ CREATE TABLE "worktrees" ( "root_name" VARCHAR NOT NULL, "abs_path" VARCHAR NOT NULL, "visible" BOOL NOT NULL, - "scan_id" INTEGER NOT NULL, + "scan_id" INT8 NOT NULL, "is_complete" BOOL NOT NULL, PRIMARY KEY(project_id, id) ); @@ -27,7 +27,7 @@ CREATE TABLE "worktree_entries" ( "id" INTEGER NOT NULL, "is_dir" BOOL NOT NULL, "path" VARCHAR NOT NULL, - "inode" INTEGER NOT NULL, + "inode" INT8 NOT NULL, "mtime_seconds" INTEGER NOT NULL, "mtime_nanos" INTEGER NOT NULL, "is_symlink" BOOL NOT NULL,