task/3382: Harmonisera tabellnamn #6
@ -21,11 +21,11 @@ public class NationalSubjectCategory {
|
||||
private Long id;
|
||||
|
||||
@Basic
|
||||
@Column(name = "swedish_name")
|
||||
@Column(name = "name_sv")
|
||||
private String swedishName;
|
||||
|
||||
@Basic
|
||||
@Column(name = "english_name")
|
||||
@Column(name = "name_en")
|
||||
private String englishName;
|
||||
|
||||
@Basic
|
||||
|
@ -25,19 +25,19 @@ public class PublicationMetadata {
|
||||
private Long id;
|
||||
|
||||
@Basic
|
||||
@Column(name = "abstract_swedish")
|
||||
@Column(name = "abstract_sv")
|
||||
private String abstractSwedish;
|
||||
|
||||
@Basic
|
||||
@Column(name = "abstract_english")
|
||||
@Column(name = "abstract_en")
|
||||
private String abstractEnglish;
|
||||
|
||||
@Basic
|
||||
@Column(name = "keywords_swedish")
|
||||
@Column(name = "keywords_sv")
|
||||
private String keywordsSwedish;
|
||||
|
||||
@Basic
|
||||
@Column(name = "keywords_english")
|
||||
@Column(name = "keywords_en")
|
||||
private String keywordsEnglish;
|
||||
|
||||
// ----------------------------------------------------------------------------------
|
||||
|
@ -2460,6 +2460,8 @@ alter table `grading_history_approval`
|
||||
|
||||
alter table `national_subject_category` drop key `U_national_subject_category_external_id`;
|
||||
|
||||
alter table `national_subject_category` change `swedish_name` `name_sv` varchar(255) not null after `id`;
|
||||
alter table `national_subject_category` change `english_name` `name_en` varchar(255) not null after `name_sv`;
|
||||
alter table `national_subject_category` change `external_id` `external_id` int(11) not null after `preselected`;
|
||||
|
||||
alter table `national_subject_category`
|
||||
@ -2475,6 +2477,11 @@ alter table `publication_metadata` drop key `FK_publication_metadata_national_su
|
||||
|
||||
alter table `publication_metadata` change `project_id` `project_id` bigint(20) not null after `national_subject_category_id`;
|
||||
|
||||
alter table `publication_metadata` change `abstract_swedish` `abstract_sv` text default null after `id`;
|
||||
alter table `publication_metadata` change `abstract_english` `abstract_en` text default null after `abstract_sv`;
|
||||
alter table `publication_metadata` change `keywords_swedish` `keywords_sv` text default null after `abstract_en`;
|
||||
alter table `publication_metadata` change `keywords_english` `keywords_en` text default null after `keywords_sv`;
|
||||
|
||||
alter table `publication_metadata`
|
||||
add constraint fk_publication_metadata_national_subject_category_id
|
||||
foreign key (national_subject_category_id) references national_subject_category (id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user