diesel installed with example to create and list users
This commit is contained in:
2
migrations/2023-10-08-191013_create-users/down.sql
Normal file
2
migrations/2023-10-08-191013_create-users/down.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
DROP TABLE IF EXISTS "users";
|
||||
6
migrations/2023-10-08-191013_create-users/up.sql
Normal file
6
migrations/2023-10-08-191013_create-users/up.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
-- Your SQL goes here
|
||||
CREATE TABLE "users"(
|
||||
"id" SERIAL PRIMARY KEY,
|
||||
"username" VARCHAR NOT NULL
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user