14 lines
428 B
SQL

-- Migration: 0001_init
-- Creates the snapshots table for git-workspace-status sense.
CREATE TABLE IF NOT EXISTS snapshots (
ts INTEGER PRIMARY KEY,
branch TEXT NOT NULL,
head_short TEXT NOT NULL,
porcelain_lines INTEGER NOT NULL,
has_upstream INTEGER NOT NULL,
ahead_count INTEGER NOT NULL,
behind_count INTEGER NOT NULL,
git_error TEXT NOT NULL
);