src/main/resources/db/migration/h2/V6__alter_table_certificate_add_oid.sql
/*
* Nuts discovery service
* Copyright (C) 2020 Nuts community
*
* This program 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.
*
* This program 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 this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
ALTER TABLE certificate ADD COLUMN oid VARCHAR(255);
ALTER TABLE certificate ADD COLUMN chain TEXT;
ALTER TABLE certificate ADD COLUMN ca VARCHAR(255);
CREATE INDEX c_oid_idx on certificate(oid);
CREATE INDEX c_ca_idx on certificate(ca);