Skip to content

Commit

Permalink
revert: add licence headers to flyway migrations (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilczaja committed Mar 6, 2024
1 parent b27883f commit 2e34993
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 101 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
-- Copyright (c) 2024 sovity GmbH
--
-- This program and the accompanying materials are made available under the
-- terms of the Apache License, Version 2.0 which is available at
-- https://www.apache.org/licenses/LICENSE-2.0
--
-- SPDX-License-Identifier: Apache-2.0
--
-- Contributors:
-- sovity GmbH - initial implementation
-- User
create type user_registration_status as enum ('FIRST_USER', 'CREATED', 'PENDING', 'APPROVED', 'REJECTED');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
-- Copyright (c) 2024 sovity GmbH
--
-- This program and the accompanying materials are made available under the
-- terms of the Apache License, Version 2.0 which is available at
-- https://www.apache.org/licenses/LICENSE-2.0
--
-- SPDX-License-Identifier: Apache-2.0
--
-- Contributors:
-- sovity GmbH - initial implementation
-- User
alter type user_registration_status add value 'INVITED' before 'CREATED';
alter type user_registration_status add value 'DEACTIVATED' after 'REJECTED';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
-- Copyright (c) 2024 sovity GmbH
--
-- This program and the accompanying materials are made available under the
-- terms of the Apache License, Version 2.0 which is available at
-- https://www.apache.org/licenses/LICENSE-2.0
--
-- SPDX-License-Identifier: Apache-2.0
--
-- Contributors:
-- sovity GmbH - initial implementation
-- User
ALTER TABLE "user"
ADD COLUMN email text,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
-- Copyright (c) 2024 sovity GmbH
--
-- This program and the accompanying materials are made available under the
-- terms of the Apache License, Version 2.0 which is available at
-- https://www.apache.org/licenses/LICENSE-2.0
--
-- SPDX-License-Identifier: Apache-2.0
--
-- Contributors:
-- sovity GmbH - initial implementation
-- Components
create table "component" (
id text primary key,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
-- Copyright (c) 2024 sovity GmbH
--
-- This program and the accompanying materials are made available under the
-- terms of the Apache License, Version 2.0 which is available at
-- https://www.apache.org/licenses/LICENSE-2.0
--
-- SPDX-License-Identifier: Apache-2.0
--
-- Contributors:
-- sovity GmbH - initial implementation
-- User
create type user_onboarding_type as enum ('INVITATION', 'SELF_REGISTRATION');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
-- Copyright (c) 2024 sovity GmbH
--
-- This program and the accompanying materials are made available under the
-- terms of the Apache License, Version 2.0 which is available at
-- https://www.apache.org/licenses/LICENSE-2.0
--
-- SPDX-License-Identifier: Apache-2.0
--
-- Contributors:
-- sovity GmbH - initial implementation
-- Edit Enum: Remove UserRegistrationStatus.CREATED, UserRegistrationStatus.FIRST_USER
delete
from "user"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
-- Copyright (c) 2024 sovity GmbH
--
-- This program and the accompanying materials are made available under the
-- terms of the Apache License, Version 2.0 which is available at
-- https://www.apache.org/licenses/LICENSE-2.0
--
-- SPDX-License-Identifier: Apache-2.0
--
-- Contributors:
-- sovity GmbH - initial implementation
-- Organization
alter table "organization"
add column industry text;
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
-- Copyright (c) 2024 sovity GmbH
--
-- This program and the accompanying materials are made available under the
-- terms of the Apache License, Version 2.0 which is available at
-- https://www.apache.org/licenses/LICENSE-2.0
--
-- SPDX-License-Identifier: Apache-2.0
--
-- Contributors:
-- sovity GmbH - initial implementation
-- Insert example data
insert into "user" (id, organization_mds_id, registration_status)
values ('9525c6ea-34d5-4c11-b9f8-133dc2086f00', null, 'APPROVED');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
-- Copyright (c) 2024 sovity GmbH
--
-- This program and the accompanying materials are made available under the
-- terms of the Apache License, Version 2.0 which is available at
-- https://www.apache.org/licenses/LICENSE-2.0
--
-- SPDX-License-Identifier: Apache-2.0
--
-- Contributors:
-- sovity GmbH - initial implementation
update "user" set email = '[email protected]', first_name = 'First Name 01', last_name = 'Last Name 01', job_title = 'Job Title 01', phone = '+49 0000 01' where id = '00000000-0000-0000-0000-000000000001';
update "user" set email = '[email protected]', first_name = 'First Name 02', last_name = 'Last Name 02', job_title = 'Job Title 02', phone = '+49 0000 02' where id = '00000000-0000-0000-0000-000000000002';
update "user" set email = '[email protected]', first_name = 'First Name 03', last_name = 'Last Name 03', job_title = 'Job Title 03', phone = '+49 0000 03' where id = '00000000-0000-0000-0000-000000000003';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
-- Copyright (c) 2024 sovity GmbH
--
-- This program and the accompanying materials are made available under the
-- terms of the Apache License, Version 2.0 which is available at
-- https://www.apache.org/licenses/LICENSE-2.0
--
-- SPDX-License-Identifier: Apache-2.0
--
-- Contributors:
-- sovity GmbH - initial implementation
update "organization"
set
industry = 'Finance'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ quarkus.oidc-client.sovity.early-tokens-acquisition=false
# Test properties
%test.authority-portal.deployment.environments.test.title=Test Environment
%test.authority-portal.deployment.environments.test.position=0
%test.authority-portal.deployment.environments.test.broker.url=url
%test.authority-portal.deployment.environments.test.broker.url=https://url
%test.authority-portal.deployment.environments.test.broker.admin-api-key=DefaultBrokerServerAdminApiKey
%test.authority-portal.deployment.environments.test.broker.api-key=ApiKeyDefaultValue
%test.authority-portal.deployment.environments.test.broker.kuma-name="DEV mds catalog"
Expand Down

0 comments on commit 2e34993

Please sign in to comment.