-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fixes #9550] Show creator/editor in 'Edit properties' (#333)
- Loading branch information
Showing
27 changed files
with
561 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 11 additions & 1 deletion
12
doc/sql/migration/h2/h2-migration-from-v.2.0.0-to-v2.1.0.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
alter table gs_resource add column advertised bool not null default true; | ||
alter table gs_resource add column creator varchar(255); | ||
alter table gs_resource add column editor varchar(255); | ||
alter table gs_resource add column advertised bool not null default true; | ||
|
||
-- Set the Resource Creator whether this is NULL | ||
update gs_resource as gsr | ||
set creator = subquery.name | ||
from | ||
(select gsu.name, gss.resource_id from geostore.gs_security as gss join geostore.gs_user as gsu on (gss.user_id = gsu.id) | ||
where gss.user_id IS NOT NULL) as subquery | ||
where gsr.id = subquery.resource_id and gsr.creator IS NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 11 additions & 1 deletion
12
doc/sql/migration/oracle/oracle-migration-from-v.2.0.0-to-v2.1.0.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
alter table gs_resource add column advertised bool not null default true; | ||
alter table gs_resource add column creator varchar2(255 char); | ||
alter table gs_resource add column editor varchar2(255 char); | ||
alter table gs_resource add column advertised bool not null default true; | ||
|
||
-- Set the Resource Creator whether this is NULL | ||
update gs_resource as gsr | ||
set creator = subquery.name | ||
from | ||
(select gsu.name, gss.resource_id from geostore.gs_security as gss join geostore.gs_user as gsu on (gss.user_id = gsu.id) | ||
where gss.user_id IS NOT NULL) as subquery | ||
where gsr.id = subquery.resource_id and gsr.creator IS NULL; |
12 changes: 11 additions & 1 deletion
12
doc/sql/migration/postgresql/postgresql-migration-from-v.2.0.0-to-v2.1.0.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
alter table gs_resource add column advertised bool not null default true; | ||
alter table gs_resource add column creator varchar(255); | ||
alter table gs_resource add column editor varchar(255); | ||
alter table gs_resource add column advertised bool not null default true; | ||
|
||
-- Set the Resource Creator whether this is NULL | ||
update gs_resource as gsr | ||
set creator = subquery.name | ||
from | ||
(select gsu.name, gss.resource_id from geostore.gs_security as gss join geostore.gs_user as gsu on (gss.user_id = gsu.id) | ||
where gss.user_id IS NOT NULL) as subquery | ||
where gsr.id = subquery.resource_id and gsr.creator IS NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.