mirror of
https://github.com/zaphar/kitchen.git
synced 2025-07-22 19:40:14 -04:00
SQLite migrations
This commit is contained in:
parent
0cc411590e
commit
ba68738dfa
2
kitchen/migrations/20220901233514_recipes_v1.down.sql
Normal file
2
kitchen/migrations/20220901233514_recipes_v1.down.sql
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
-- Add down migration script here
|
||||||
|
drop table recipes;
|
5
kitchen/migrations/20220901233514_recipes_v1.up.sql
Normal file
5
kitchen/migrations/20220901233514_recipes_v1.up.sql
Normal 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));
|
@ -2,5 +2,4 @@
|
|||||||
with pkgs;
|
with pkgs;
|
||||||
mkShell {
|
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 = (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];
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user