feat: add diesel, but not works
This commit is contained in:
0
__database/diesel/migrations/.gitkeep
Normal file
0
__database/diesel/migrations/.gitkeep
Normal file
@@ -0,0 +1,4 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
DROP TABLE posts
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
-- Your SQL goes here
|
||||
CREATE TABLE posts (
|
||||
id INTEGER PRIMARY KEY,
|
||||
title VARCHAR NOT NULL,
|
||||
body TEXT NOT NULL,
|
||||
published BOOLEAN NOT NULL DEFAULT 'f'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user