From 84a1695d284bebe19a045c7def2879dc754deb5f Mon Sep 17 00:00:00 2001 From: Sylvain Jermini Date: Fri, 18 Aug 2017 14:32:22 +0200 Subject: [PATCH] #328 add new fields --- .../V19_1.11.9__CODE_TICKET_CATEGORY.sql | 19 +++++++++++++++++++ .../V19_1.11.9__CODE_TICKET_CATEGORY.sql | 19 +++++++++++++++++++ .../V19_1.11.9__CODE_TICKET_CATEGORY.sql | 19 +++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 src/main/resources/alfio/db/HSQLDB/V19_1.11.9__CODE_TICKET_CATEGORY.sql create mode 100644 src/main/resources/alfio/db/MYSQL/V19_1.11.9__CODE_TICKET_CATEGORY.sql create mode 100644 src/main/resources/alfio/db/PGSQL/V19_1.11.9__CODE_TICKET_CATEGORY.sql diff --git a/src/main/resources/alfio/db/HSQLDB/V19_1.11.9__CODE_TICKET_CATEGORY.sql b/src/main/resources/alfio/db/HSQLDB/V19_1.11.9__CODE_TICKET_CATEGORY.sql new file mode 100644 index 0000000000..85e335e809 --- /dev/null +++ b/src/main/resources/alfio/db/HSQLDB/V19_1.11.9__CODE_TICKET_CATEGORY.sql @@ -0,0 +1,19 @@ +-- +-- This file is part of alf.io. +-- +-- alf.io is free software: you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation, either version 3 of the License, or +-- (at your option) any later version. +-- +-- alf.io is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with alf.io. If not, see . +-- + +alter table ticket_category add column category_code varchar(255); +alter table ticket_category add constraint "unique_category_code_for_event" unique(event_id, category_code); \ No newline at end of file diff --git a/src/main/resources/alfio/db/MYSQL/V19_1.11.9__CODE_TICKET_CATEGORY.sql b/src/main/resources/alfio/db/MYSQL/V19_1.11.9__CODE_TICKET_CATEGORY.sql new file mode 100644 index 0000000000..a583af1c85 --- /dev/null +++ b/src/main/resources/alfio/db/MYSQL/V19_1.11.9__CODE_TICKET_CATEGORY.sql @@ -0,0 +1,19 @@ +-- +-- This file is part of alf.io. +-- +-- alf.io is free software: you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation, either version 3 of the License, or +-- (at your option) any later version. +-- +-- alf.io is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with alf.io. If not, see . +-- + +alter table ticket_category add column category_code varchar(255); +alter table ticket_category add constraint unique_category_code_for_event unique(event_id, category_code); \ No newline at end of file diff --git a/src/main/resources/alfio/db/PGSQL/V19_1.11.9__CODE_TICKET_CATEGORY.sql b/src/main/resources/alfio/db/PGSQL/V19_1.11.9__CODE_TICKET_CATEGORY.sql new file mode 100644 index 0000000000..85e335e809 --- /dev/null +++ b/src/main/resources/alfio/db/PGSQL/V19_1.11.9__CODE_TICKET_CATEGORY.sql @@ -0,0 +1,19 @@ +-- +-- This file is part of alf.io. +-- +-- alf.io is free software: you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation, either version 3 of the License, or +-- (at your option) any later version. +-- +-- alf.io is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with alf.io. If not, see . +-- + +alter table ticket_category add column category_code varchar(255); +alter table ticket_category add constraint "unique_category_code_for_event" unique(event_id, category_code); \ No newline at end of file