datomic progress.
This commit is contained in:
12
datomic-init/postgres-db.sql
Executable file
12
datomic-init/postgres-db.sql
Executable file
@@ -0,0 +1,12 @@
|
||||
-- Database: datomic
|
||||
|
||||
-- DROP DATABASE datomic;
|
||||
|
||||
CREATE DATABASE datomic
|
||||
WITH OWNER = postgres
|
||||
TEMPLATE template0
|
||||
ENCODING = 'UTF8'
|
||||
TABLESPACE = pg_default
|
||||
LC_COLLATE = 'en_US.UTF-8'
|
||||
LC_CTYPE = 'en_US.UTF-8'
|
||||
CONNECTION LIMIT = -1;
|
||||
19
datomic-init/postgres-table.sql
Executable file
19
datomic-init/postgres-table.sql
Executable file
@@ -0,0 +1,19 @@
|
||||
-- Table: datomic_kvs
|
||||
|
||||
-- DROP TABLE datomic_kvs;
|
||||
|
||||
CREATE TABLE datomic_kvs
|
||||
(
|
||||
id text NOT NULL,
|
||||
rev integer,
|
||||
map text,
|
||||
val bytea,
|
||||
CONSTRAINT pk_id PRIMARY KEY (id )
|
||||
)
|
||||
WITH (
|
||||
OIDS=FALSE
|
||||
);
|
||||
ALTER TABLE datomic_kvs
|
||||
OWNER TO postgres;
|
||||
GRANT ALL ON TABLE datomic_kvs TO postgres;
|
||||
GRANT ALL ON TABLE datomic_kvs TO public;
|
||||
5
datomic-init/postgres-user.sql
Executable file
5
datomic-init/postgres-user.sql
Executable file
@@ -0,0 +1,5 @@
|
||||
|
||||
-- DROP ROLE :datomic
|
||||
|
||||
CREATE ROLE datomic LOGIN PASSWORD 'datomic';
|
||||
|
||||
Reference in New Issue
Block a user