building db support with diesel.rs
This commit is contained in:
0
cookbook/migrations/.gitkeep
Normal file
0
cookbook/migrations/.gitkeep
Normal file
@@ -0,0 +1,2 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
DROP TABLE recipes
|
||||
@@ -0,0 +1,8 @@
|
||||
-- Your SQL goes here
|
||||
CREATE TABLE recipes (
|
||||
id INTEGER PRIMARY KEY NOT NULL,
|
||||
title VARCHAR NOT NULL,
|
||||
category INTEGER NOT NULL,
|
||||
ingredients TEXT NOT NULL,
|
||||
preparation TEXT NOT NULL
|
||||
)
|
||||
Reference in New Issue
Block a user