generated from alecodes/base-template
refactor!: change migration tool to sqlx
This commit is contained in:
parent
27037a9f75
commit
49c8682164
15 changed files with 30 additions and 894 deletions
10
migrations/20250415185421_create_table_sources.up.sql
Normal file
10
migrations/20250415185421_create_table_sources.up.sql
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
-- Add up migration script here
|
||||
CREATE TABLE public.sources (
|
||||
id serial PRIMARY KEY,
|
||||
name character varying(20) NOT NULL,
|
||||
uid character varying(8) NOT NULL,
|
||||
uri character varying,
|
||||
created_at timestamp WITH time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||
updated_at timestamp WITH time zone,
|
||||
deleted_at timestamp WITH time zone
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue