]> git.sur5r.net Git - openldap/blob - servers/slapd/back-sql/rdbms_depend/pgsql/testdb_create.sql
Converted ch_malloc, ch_calloc and ch_realloc calls to SLAP_MALLOC,
[openldap] / servers / slapd / back-sql / rdbms_depend / pgsql / testdb_create.sql
1 drop table persons;
2 drop sequence persons_id_seq;
3 create table persons (
4         id serial not null primary key,
5         name varchar(255) not null,
6         surname varchar(255) not null
7 );
8
9 drop table institutes;
10 drop sequence institutes_id_seq;
11 create table institutes (
12         id serial not null primary key,
13         name varchar(255)
14 );
15
16 drop table documents;
17 drop sequence documents_id_seq;
18 create table documents (
19         id serial not null primary key,
20         title varchar(255) not null,
21         abstract varchar(255)
22 );
23
24 drop table authors_docs;
25 create table authors_docs (
26         pers_id int not null,
27         doc_id int not null,
28         primary key ( pers_id, doc_id )
29 );
30
31 drop table phones;
32 drop sequence phones_id_seq;
33 create table phones (
34         id serial not null primary key,
35         phone varchar(255) not null ,
36         pers_id int not null
37 );
38