diff options
| -rw-r--r-- | model/sql/migrate.sql | 16 | ||||
| -rw-r--r-- | model/sql/testdata.sql | 2 | 
2 files changed, 9 insertions, 9 deletions
| diff --git a/model/sql/migrate.sql b/model/sql/migrate.sql index 6ca4d0f..4cbf75b 100644 --- a/model/sql/migrate.sql +++ b/model/sql/migrate.sql @@ -1,14 +1,14 @@  CREATE TABLE 'recipes' ( -	'id' integer PRIMARY KEY AUTOINCREMENT, -	'title' text DEFAULT '', -	'portions' text DEFAULT '',  -- FIXME has to be integer -	'url' text DEFAULT '', -	'notes' text DEFAULT '' +	'id'       integer PRIMARY KEY AUTOINCREMENT, +	'title'    text    DEFAULT '', +	'portions' text    DEFAULT '',  -- FIXME has to be integer +	'url'      text    DEFAULT '', +	'notes'    text    DEFAULT ''  );  CREATE TABLE 'recipe_steps' ( -	'id' integer PRIMARY KEY, +	'id'        integer PRIMARY KEY,  	'recipe_id' integer DEFAULT NULL, -	'rank' integer DEFAULT NULL, -	'text' text DEFAULT '' +	'index'     integer DEFAULT NULL, +	'text'      text    DEFAULT ''  ); diff --git a/model/sql/testdata.sql b/model/sql/testdata.sql index f2cd6e3..5452979 100644 --- a/model/sql/testdata.sql +++ b/model/sql/testdata.sql @@ -6,7 +6,7 @@ VALUES  ;  INSERT INTO 'recipe_steps' -	('id', 'recipe_id', 'rank', 'text') +	('id', 'recipe_id', 'index', 'text')  VALUES  	(1, 1, 1, 'Stir the dough'),  	(2, 1, 2, 'Fry pancakes') | 
