diff --git a/sample/Migra.toml b/sample/Migra.toml new file mode 100644 index 0000000..eb1a3a4 --- /dev/null +++ b/sample/Migra.toml @@ -0,0 +1,4 @@ +directory = "database" + +[database] +connection = "postgres://postgres:123456@localhost:5434/migra" diff --git a/sample/database/schema.sql b/sample/database/schema.sql new file mode 100644 index 0000000..33dc301 --- /dev/null +++ b/sample/database/schema.sql @@ -0,0 +1,6 @@ + +create table tags ( + id serial primary key, + name text not null unique check(length(name) > 0), + created_at timestamp not null default current_timestamp +);