src/main/resources/db/schema-changes-0.2-0.3.sql
author Tomas Zeman <tzeman@volny.cz>
Wed, 09 May 2012 22:53:03 +0200
changeset 98 eac38214183d
child 99 49eb72a46208
permissions -rw-r--r--
9830b81e1c79d212 Project locations

-- DATABASE SCHEMA CHANGES BETWEEN 0.2 -> 0.3 VERSION

-- project_location
create table "project_location" (
    "location" bigint not null,
    "project" bigint not null
  );
alter table "project_location" add foreign key ("project") references "project"("id") on delete cascade;
alter table "project_location" add foreign key ("location") references "location"("id") on delete cascade;
alter table "project_location" add unique("project","location");