SQLite migrations

This commit is contained in:
Jeremy Wall 2022-09-01 14:37:28 -04:00
parent 0cc411590e
commit ba68738dfa
3 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,2 @@
-- Add down migration script here
drop table recipes;

View File

@ -0,0 +1,5 @@
-- Add up migration script here
create table recipes(user_id TEXT NOT NULL, recipe_id TEXT NOT NULL, recipe_text TEXT,
constraint recipe_primary_key primary key (user_id, recipe_id));
create table categories(user_id TEXT NOT NULL, category_text,
constraint category_primary_key primary key (user_id));

View File

@ -2,5 +2,4 @@
with pkgs;
mkShell {
buildInputs = (if stdenv.isDarwin then [ pkgs.darwin.apple_sdk.frameworks.Security ] else [ ]) ++ (with pkgs; [wasm-bindgen-cli wasm-pack llvm clang rust-wasm]);
#buildInputs = with pkgs; [wasm-bindgen-cli wasm-pack];
}