From 49f14be54835640040eb65f1b4509ceb797137bd Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Mon, 1 Feb 2021 23:49:26 +0300 Subject: [PATCH] chore: init sample folder --- sample/Migra.toml | 4 ++++ sample/database/schema.sql | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 sample/Migra.toml create mode 100644 sample/database/schema.sql 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 +);