You've already forked testing-go-code-with-postgres
mirror of
https://github.com/xorcare/testing-go-code-with-postgres.git
synced 2025-06-30 23:23:40 +02:00
Publish an example testing go code with Postgres
This commit is contained in:
1
migrations/000001_create_users_table.down.sql
Normal file
1
migrations/000001_create_users_table.down.sql
Normal file
@ -0,0 +1 @@
|
||||
DROP TABLE users;
|
6
migrations/000001_create_users_table.up.sql
Normal file
6
migrations/000001_create_users_table.up.sql
Normal file
@ -0,0 +1,6 @@
|
||||
CREATE TABLE users
|
||||
(
|
||||
user_id uuid,
|
||||
username VARCHAR(50) UNIQUE NOT NULL,
|
||||
created_at TIMESTAMP WITH TIME ZONE NOT NULL
|
||||
);
|
Reference in New Issue
Block a user