From 55ef99afd7118414c7379ab4de9d4bf6bce94b01 Mon Sep 17 00:00:00 2001 From: me_desk Date: Mon, 13 Aug 2012 22:34:10 +0000 Subject: creating initial database during build process; README and LICENSE files added git-svn-id: svn://localhost/project_picapica/trunk@163 fb96df88-216d-11de-830c-f3023f12d8ac --- nodelist_db_create.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 nodelist_db_create.sql (limited to 'nodelist_db_create.sql') diff --git a/nodelist_db_create.sql b/nodelist_db_create.sql new file mode 100644 index 0000000..c7c94dd --- /dev/null +++ b/nodelist_db_create.sql @@ -0,0 +1,13 @@ +-- create table schema and insert initial node addresses + +create table if not exists nodes + ( + address varchar(255) not null, + port int not null, + last_active int not null, + inactive_count int not null, + constraint pk primary key (address,port) on conflict replace + ); +insert into nodes values("picapica.im", 2299, 0, 0); +insert into nodes values("picapica.ge", 2299, 0, 0); + -- cgit v1.2.1