Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • dev
  • master
  • Issue/3003-stsInstitute
  • gitkeep
  • Issue/2449-GuidPidSlugToProjectSettings
  • Issue/2309-docs
  • Fix/xxxx-updateDependencies
  • Issue/2364-testingKpiParser
  • Issue/2287-guestRole
  • Test/xxxx-pipelineTriggers
  • Issue/2102-gitLabResTypeRCV
  • Issue/2278-gitlabToS
  • Issue/2101-gitLabResTypeUi
  • Issue/1788-extractionCronjob
  • Issue/2183-kpiGeneratorResource
  • Issue/2222-resourceDateCreated
  • Issue/2221-projectDateCreated
  • Issue/1321-pidEnquiryOverhaul
  • Issue/1999-gitlabResourcesLib
  • Issue/1951-quotaImplementation
  • Issue/2072-wormResourceType
  • Hotfix/2087-efNet6
  • Issue/1910-MigrationtoNET6.0
  • Issue/1913-ModificationsResourceMetadata
  • Sprint/2022-01
  • Issue/1867-addNewResourceTypes
  • Issue/1866-ExtendResourceTypeConfigurationTUDo
  • Issue/1877-ExtendResourceTypeConfigurationNRWFHs
  • Issue/1878-addNewResourceTypes
  • Hotfix/1796-projectDdos
  • Hotfix/0071-fixResourceCreate
  • Hotfix/73-fixResourceCreateRDS
  • Hotfix/64-releaseUDE
  • Sprint/2021-19
  • Issues/0028-maxQuotaFix
  • Topic/1714-newResourceTypesUDE
  • Product/1629-onboardingOtherUniversities
  • Topic/1711-extendResourceTypeConfiguration
  • Sprint/2021-15
  • Product/1573-ReadOnlyResources
  • Sprint/2021-11
  • Topic/1597-AddArchiveFlagInResourceObject
  • Sprint/2021-10
  • Product/1470-migrationForArchiving
  • Topic/1556-migrationForArchiving
  • Sprint/2021-08
  • Product/202-userInvitation
  • Topic/1453-userInvitation
  • Product/1414-fhPrivileges
  • Topic/1425-fhPrivileges
  • Hotfix/1433-defaultQuota
  • Sprint/2021-05
  • Product/1188-LoggingExtended
  • Product/1100-fdsS3
  • Topic/1292-FdsS3
  • Topic/1221-LogginExtendedNew
  • Hotfix/1383-topLevel
  • Hotfix/1383-topLevelAlternative
  • Sprint/2021-04
  • Product/789-userContactEmail
  • Topic/1294-contactChangeFunctionality
  • Hotfix/1360-databaseScaffolding
  • Sprint/2021-03
  • Product/1287-dotnet5Sharepoint
  • Topic/1286-dotnet5Database
  • Sprint/2021-01
  • Product/1149-dfnaai
  • Topic/1221-LoggingExtended
  • Topic/1226-databaseLibraryMigration
  • Topic/1278-dfnAAI
  • Product/407-net5migration
  • Sprint/2020-22
  • Product/1154-resourceTypeDefinition
  • Topic/1159-rtdApi
  • Product/903-ApiTokens
  • Topic/1125-apiTokens
  • Sprint/2020-20
  • Product/704-basicReporting
  • Topic/1051-basicReporting
  • Hotfix/1035-fixResourceApi
  • v1.0.0
  • v1.1.0
  • v1.10.0
  • v1.11.0
  • v1.12.0
  • v1.12.1
  • v1.13.0
  • v1.14.0
  • v1.15.0
  • v1.15.1
  • v1.16.0
  • v1.17.0
  • v1.18.0
  • v1.19.0
  • v1.2.0
  • v1.2.1
  • v1.2.2
  • v1.20.0
  • v1.21.0
  • v1.22.0
  • v1.22.1
  • v1.22.2
  • v1.23.0
  • v1.24.0
  • v1.25.0
  • v1.25.1
  • v1.26.0
  • v1.27.0
  • v1.27.1
  • v1.28.0
  • v1.3.0
  • v1.4.0
  • v1.5.0
  • v1.5.1
  • v1.6.0
  • v1.7.0
  • v1.8.0
  • v1.9.0
  • v2.0.0
  • v2.0.1
  • v2.1.0
  • v2.1.1
  • v2.10.0
  • v2.10.1
  • v2.11.0
  • v2.11.1
  • v2.12.0
  • v2.12.1
  • v2.13.0
  • v2.14.0
  • v2.15.0
  • v2.16.0
  • v2.16.1
  • v2.16.2
  • v2.17.0
  • v2.18.0
  • v2.19.0
  • v2.19.1
  • v2.2.0
  • v2.2.1
  • v2.20.0
  • v2.22.0
  • v2.3.0
  • v2.4.0
  • v2.4.1
  • v2.5.0
  • v2.6.0
  • v2.7.0
  • v2.7.1
  • v2.7.2
  • v2.7.3
  • v2.8.0
  • v2.9.0
  • v2.9.1
154 results

Target

Select target project
  • Coscine / backend / libraries / Database
1 result
Select Git revision
  • dev
  • master
  • Issue/3003-stsInstitute
  • gitkeep
  • Issue/2449-GuidPidSlugToProjectSettings
  • Issue/2309-docs
  • Fix/xxxx-updateDependencies
  • Issue/2364-testingKpiParser
  • Issue/2287-guestRole
  • Test/xxxx-pipelineTriggers
  • Issue/2102-gitLabResTypeRCV
  • Issue/2278-gitlabToS
  • Issue/2101-gitLabResTypeUi
  • Issue/1788-extractionCronjob
  • Issue/2183-kpiGeneratorResource
  • Issue/2222-resourceDateCreated
  • Issue/2221-projectDateCreated
  • Issue/1321-pidEnquiryOverhaul
  • Issue/1999-gitlabResourcesLib
  • Issue/1951-quotaImplementation
  • Issue/2072-wormResourceType
  • Hotfix/2087-efNet6
  • Issue/1910-MigrationtoNET6.0
  • Issue/1913-ModificationsResourceMetadata
  • Sprint/2022-01
  • Issue/1867-addNewResourceTypes
  • Issue/1866-ExtendResourceTypeConfigurationTUDo
  • Issue/1877-ExtendResourceTypeConfigurationNRWFHs
  • Issue/1878-addNewResourceTypes
  • Hotfix/1796-projectDdos
  • Hotfix/0071-fixResourceCreate
  • Hotfix/73-fixResourceCreateRDS
  • Hotfix/64-releaseUDE
  • Sprint/2021-19
  • Issues/0028-maxQuotaFix
  • Topic/1714-newResourceTypesUDE
  • Product/1629-onboardingOtherUniversities
  • Topic/1711-extendResourceTypeConfiguration
  • Sprint/2021-15
  • Product/1573-ReadOnlyResources
  • Sprint/2021-11
  • Topic/1597-AddArchiveFlagInResourceObject
  • Sprint/2021-10
  • Product/1470-migrationForArchiving
  • Topic/1556-migrationForArchiving
  • Sprint/2021-08
  • Product/202-userInvitation
  • Topic/1453-userInvitation
  • Product/1414-fhPrivileges
  • Topic/1425-fhPrivileges
  • Hotfix/1433-defaultQuota
  • Sprint/2021-05
  • Product/1188-LoggingExtended
  • Product/1100-fdsS3
  • Topic/1292-FdsS3
  • Topic/1221-LogginExtendedNew
  • Hotfix/1383-topLevel
  • Hotfix/1383-topLevelAlternative
  • Sprint/2021-04
  • Product/789-userContactEmail
  • Topic/1294-contactChangeFunctionality
  • Hotfix/1360-databaseScaffolding
  • Sprint/2021-03
  • Product/1287-dotnet5Sharepoint
  • Topic/1286-dotnet5Database
  • Sprint/2021-01
  • Product/1149-dfnaai
  • Topic/1221-LoggingExtended
  • Topic/1226-databaseLibraryMigration
  • Topic/1278-dfnAAI
  • Product/407-net5migration
  • Sprint/2020-22
  • Product/1154-resourceTypeDefinition
  • Topic/1159-rtdApi
  • Product/903-ApiTokens
  • Topic/1125-apiTokens
  • Sprint/2020-20
  • Product/704-basicReporting
  • Topic/1051-basicReporting
  • Hotfix/1035-fixResourceApi
  • v1.0.0
  • v1.1.0
  • v1.10.0
  • v1.11.0
  • v1.12.0
  • v1.12.1
  • v1.13.0
  • v1.14.0
  • v1.15.0
  • v1.15.1
  • v1.16.0
  • v1.17.0
  • v1.18.0
  • v1.19.0
  • v1.2.0
  • v1.2.1
  • v1.2.2
  • v1.20.0
  • v1.21.0
  • v1.22.0
  • v1.22.1
  • v1.22.2
  • v1.23.0
  • v1.24.0
  • v1.25.0
  • v1.25.1
  • v1.26.0
  • v1.27.0
  • v1.27.1
  • v1.28.0
  • v1.3.0
  • v1.4.0
  • v1.5.0
  • v1.5.1
  • v1.6.0
  • v1.7.0
  • v1.8.0
  • v1.9.0
  • v2.0.0
  • v2.0.1
  • v2.1.0
  • v2.1.1
  • v2.10.0
  • v2.10.1
  • v2.11.0
  • v2.11.1
  • v2.12.0
  • v2.12.1
  • v2.13.0
  • v2.14.0
  • v2.15.0
  • v2.16.0
  • v2.16.1
  • v2.16.2
  • v2.17.0
  • v2.18.0
  • v2.19.0
  • v2.19.1
  • v2.2.0
  • v2.2.1
  • v2.20.0
  • v2.22.0
  • v2.3.0
  • v2.4.0
  • v2.4.1
  • v2.5.0
  • v2.6.0
  • v2.7.0
  • v2.7.1
  • v2.7.2
  • v2.7.3
  • v2.8.0
  • v2.9.0
  • v2.9.1
154 results
Show changes

Commits on Source 4

7 files
+ 224
9
Compare changes
  • Side-by-side
  • Inline

Files

Original line number Diff line number Diff line
@@ -9,8 +9,8 @@ using System.Reflection;
[assembly: AssemblyDescription("Database.Tests is a part of the CoScInE group.")]
[assembly: AssemblyCompany("IT Center, RWTH Aachen University")]
[assembly: AssemblyProduct("Database.Tests")]
[assembly: AssemblyVersion("1.5.1.0")]
[assembly: AssemblyFileVersion("1.5.1.0")]
[assembly: AssemblyInformationalVersion("1.5.1.0")]
[assembly: AssemblyVersion("1.6.0.0")]
[assembly: AssemblyFileVersion("1.6.0.0")]
[assembly: AssemblyInformationalVersion("1.6.0.0")]
[assembly: AssemblyCopyright("2019 IT Center, RWTH Aachen University")]
Original line number Diff line number Diff line
@@ -9,8 +9,8 @@ using System.Reflection;
[assembly: AssemblyDescription("Database is a part of the CoScInE group.")]
[assembly: AssemblyCompany("IT Center, RWTH Aachen University")]
[assembly: AssemblyProduct("Database")]
[assembly: AssemblyVersion("1.5.1.0")]
[assembly: AssemblyFileVersion("1.5.1.0")]
[assembly: AssemblyInformationalVersion("1.5.1.0")]
[assembly: AssemblyVersion("1.6.0.0")]
[assembly: AssemblyFileVersion("1.6.0.0")]
[assembly: AssemblyInformationalVersion("1.6.0.0")]
[assembly: AssemblyCopyright("2019 IT Center, RWTH Aachen University")]
Original line number Diff line number Diff line
using FluentMigrator;
namespace Coscine.Database.Migration.Migrations
{
    //yyyymmddhhmm
    [Migration(201909111125)]
    public class Migration201909111125ProjectEnhancement : FluentMigrator.Migration
    {
        public override void Down()
        {
            #region Foreign Keys
            Delete.ForeignKey()
                .FromTable("ProjectDiscipline").ForeignColumn("DisciplineId")
                .ToTable("Disciplines").PrimaryColumn("Id");
            Delete.ForeignKey()
                .FromTable("ProjectDiscipline").ForeignColumn("ProjectId")
                .ToTable("Projects").PrimaryColumn("Id");

            Delete.ForeignKey()
                .FromTable("ProjectInstitute").ForeignColumn("InstituteId")
                .ToTable("Institutes").PrimaryColumn("Id");
            Delete.ForeignKey()
                .FromTable("ProjectInstitute").ForeignColumn("ProjectId")
                .ToTable("Projects").PrimaryColumn("Id");

            Delete.ForeignKey()
                .FromTable("Projects").ForeignColumn("VisibilityId")
                .ToTable("Visibilities").PrimaryColumn("Id");
            #endregion
            
            Delete.Column("DisplayName").FromTable("Projects");
            Delete.Column("PrincipleInvestigators").FromTable("Projects");
            Delete.Column("GrantId").FromTable("Projects");

            Alter.Table("Projects").AlterColumn("Description").AsString(1000).NotNullable();

            Rename.Column("ProjectName").OnTable("Projects").To("DisplayName");

            Delete.Column("VisibilityId").FromTable("Projects");

            Delete.Table("ProjectDiscipline");
            Delete.Table("Disciplines");
            Delete.Table("ProjectInstitute");
            Delete.Table("Institutes");
            Delete.Table("Visibilities");

            Alter.Table("Projects").AddColumn("Organization").AsString(50).Nullable();
        }

        public override void Up()
        {
            Rename.Column("DisplayName").OnTable("Projects").To("ProjectName");

            Delete.Column("Organization").FromTable("Projects");

            Alter.Table("Projects").AlterColumn("Description").AsString(5000).NotNullable();

            Alter.Table("Projects").AddColumn("DisplayName").AsString(25).Nullable();
            Alter.Table("Projects").AddColumn("PrincipleInvestigators").AsString(500).Nullable();
            Alter.Table("Projects").AddColumn("GrantId").AsString(500).Nullable();

            Create.Table("Disciplines")
                .WithColumn("Id").AsGuid().PrimaryKey().WithDefault(SystemMethods.NewGuid)
                .WithColumn("DisplayName").AsString(200).NotNullable()
                .WithColumn("Url").AsString(200).NotNullable();

            Create.Table("ProjectDiscipline")
                .WithColumn("RelationId").AsGuid().PrimaryKey().WithDefault(SystemMethods.NewGuid)
                .WithColumn("DisciplineId").AsGuid().NotNullable()
                .WithColumn("ProjectId").AsGuid().NotNullable();

            Create.ForeignKey()
                .FromTable("ProjectDiscipline").ForeignColumn("DisciplineId")
                .ToTable("Disciplines").PrimaryColumn("Id");
            Create.ForeignKey()
                .FromTable("ProjectDiscipline").ForeignColumn("ProjectId")
                .ToTable("Projects").PrimaryColumn("Id");

            Create.Table("Institutes")
                .WithColumn("Id").AsGuid().PrimaryKey().WithDefault(SystemMethods.NewGuid)
                .WithColumn("DisplayName").AsString(200).NotNullable()
                .WithColumn("IKZ").AsString(20).NotNullable();

            Create.Table("ProjectInstitute")
                .WithColumn("RelationId").AsGuid().PrimaryKey().WithDefault(SystemMethods.NewGuid)
                .WithColumn("InstituteId").AsGuid().NotNullable()
                .WithColumn("ProjectId").AsGuid().NotNullable();

            Create.ForeignKey()
                .FromTable("ProjectInstitute").ForeignColumn("InstituteId")
                .ToTable("Institutes").PrimaryColumn("Id");
            Create.ForeignKey()
                .FromTable("ProjectInstitute").ForeignColumn("ProjectId")
                .ToTable("Projects").PrimaryColumn("Id");

            Alter.Table("Projects").AddColumn("VisibilityId").AsGuid().Nullable();

            Create.Table("Visibilities")
                .WithColumn("Id").AsGuid().PrimaryKey().WithDefault(SystemMethods.NewGuid)
                .WithColumn("DisplayName").AsString(50).NotNullable();

            Insert.IntoTable("Visibilities").Row(new { DisplayName = "Project Members" });
            Insert.IntoTable("Visibilities").Row(new { DisplayName = "Public" });

            Create.ForeignKey()
                .FromTable("Projects").ForeignColumn("VisibilityId")
                .ToTable("Visibilities").PrimaryColumn("Id");

            Alter.Column("Keywords").OnTable("Projects").AsString(1000).Nullable();
        }
    }
}
Original line number Diff line number Diff line
using FluentMigrator;
namespace Coscine.Database.Migration.Migrations
{
    //yyyymmddhhmm
    [Migration(201909190938)]
    public class Migration201909190938ResourceEnhancement : FluentMigrator.Migration
    {
        public override void Down()
        {
            #region Foreign Keys
            Delete.ForeignKey()
                .FromTable("ResourceDiscipline").ForeignColumn("DisciplineId")
                .ToTable("Disciplines").PrimaryColumn("Id");
            Delete.ForeignKey()
                .FromTable("ResourceDiscipline").ForeignColumn("ResourceId")
                .ToTable("Resources").PrimaryColumn("Id");

            Delete.ForeignKey()
                .FromTable("Resources").ForeignColumn("VisibilityId")
                .ToTable("Visibilities").PrimaryColumn("Id");

            Delete.ForeignKey()
                .FromTable("Resources").ForeignColumn("LicenseId")
                .ToTable("Licenses").PrimaryColumn("Id");
            #endregion

            Delete.Column("DisplayName").FromTable("Resources");

            Rename.Column("ResourceName").OnTable("Resources").To("DisplayName");

            Delete.Column("VisibilityId").FromTable("Resources");
            Delete.Column("LicenseId").FromTable("Resources");
            Delete.Column("Keywords").FromTable("Resources");
            Delete.Column("UsageRights").FromTable("Resources");
            Delete.Column("ResourceTypeOptionId").FromTable("Resources");

            Alter.Table("Resources")
                .AddColumn("Url").AsString(200).Nullable()
                .AddColumn("ExternalId").AsString(200).Nullable();

            Delete.Table("ResourceDiscipline");
            Delete.Table("Licenses");
            Delete.Table("RDSResourceType");
            Delete.Table("GitlabResourceType");
        }

        public override void Up()
        {
            Rename.Column("DisplayName").OnTable("Resources").To("ResourceName");

            Alter.Table("Resources").AddColumn("DisplayName").AsString(25).Nullable();

            Create.Table("ResourceDiscipline")
               .WithColumn("RelationId").AsGuid().PrimaryKey().WithDefault(SystemMethods.NewGuid)
               .WithColumn("DisciplineId").AsGuid().NotNullable()
               .WithColumn("ResourceId").AsGuid().NotNullable();

            Create.ForeignKey()
                .FromTable("ResourceDiscipline").ForeignColumn("DisciplineId")
                .ToTable("Disciplines").PrimaryColumn("Id");
            Create.ForeignKey()
                .FromTable("ResourceDiscipline").ForeignColumn("ResourceId")
                .ToTable("Resources").PrimaryColumn("Id");

            Alter.Table("Resources").AddColumn("VisibilityId").AsGuid().Nullable();

            Create.ForeignKey()
                .FromTable("Resources").ForeignColumn("VisibilityId")
                .ToTable("Visibilities").PrimaryColumn("Id");

            Alter.Table("Resources").AddColumn("LicenseId").AsGuid().Nullable();

            Create.Table("Licenses")
                .WithColumn("Id").AsGuid().PrimaryKey().WithDefault(SystemMethods.NewGuid)
                .WithColumn("DisplayName").AsString(50).NotNullable();
            
            Create.ForeignKey()
                .FromTable("Resources").ForeignColumn("LicenseId")
                .ToTable("Licenses").PrimaryColumn("Id");

            Alter.Table("Resources").AddColumn("Keywords").AsString(1000).Nullable();
            Alter.Table("Resources").AddColumn("UsageRights").AsString(200).Nullable();

            Create.Table("RDSResourceType")
                .WithColumn("Id").AsGuid().PrimaryKey().WithDefault(SystemMethods.NewGuid)
                .WithColumn("BucketName").AsString(63).NotNullable()
                .WithColumn("AccessKey").AsString(200).Nullable()
                .WithColumn("SecretKey").AsString(200).Nullable();

            Create.Table("GitlabResourceType")
                .WithColumn("Id").AsGuid().PrimaryKey().WithDefault(SystemMethods.NewGuid)
                .WithColumn("RepositoryNumber").AsInt32().NotNullable()
                .WithColumn("RepositoryUrl").AsString(500).NotNullable()
                .WithColumn("Token").AsString(100).NotNullable();
             
            Alter.Table("Resources").AddColumn("ResourceTypeOptionId").AsGuid().Nullable();
            
            Delete.Column("ExternalId").FromTable("Resources");
            Delete.Column("Url").FromTable("Resources");
        }
    }
}
Original line number Diff line number Diff line
@@ -145,6 +145,8 @@
  <ItemGroup>
    <Compile Include="Migrations\Migration201907011352ProjectApi.cs" />
    <Compile Include="Migrations\Migration201907081510EnhanceProjectApi.cs" />
    <Compile Include="Migrations\Migration201909190938ResourceEnhancement.cs" />
    <Compile Include="Migrations\Migration201909111125ProjectEnhancement.cs" />
    <Compile Include="Migrations\Migration201909160919UserEnhancement.cs" />
    <Compile Include="Migrations\Migration201908290941ORCiD.cs" />
    <Compile Include="Migrations\Migration201908121401GitlabResource.cs" />
Original line number Diff line number Diff line
@@ -9,8 +9,8 @@ using System.Reflection;
[assembly: AssemblyDescription("Migrator is a part of the CoScInE group.")]
[assembly: AssemblyCompany("IT Center, RWTH Aachen University")]
[assembly: AssemblyProduct("Migrator")]
[assembly: AssemblyVersion("1.5.1.0")]
[assembly: AssemblyFileVersion("1.5.1.0")]
[assembly: AssemblyInformationalVersion("1.5.1.0")]
[assembly: AssemblyVersion("1.6.0.0")]
[assembly: AssemblyFileVersion("1.6.0.0")]
[assembly: AssemblyInformationalVersion("1.6.0.0")]
[assembly: AssemblyCopyright("2019 IT Center, RWTH Aachen University")]