From 1d64be347529603f58ca471e12fe3d34b5cbf0f4 Mon Sep 17 00:00:00 2001 From: Mirko Sekulic Date: Thu, 14 Nov 2024 09:19:51 +0100 Subject: [PATCH] readme update --- README.md | 4 +- .../20241113194515_Test.Designer.cs | 175 ++++++++++++++++++ .../Migrations/20241113194515_Test.cs | 22 +++ 3 files changed, 199 insertions(+), 2 deletions(-) create mode 100644 backend/src/Designer/Migrations/20241113194515_Test.Designer.cs create mode 100644 backend/src/Designer/Migrations/20241113194515_Test.cs diff --git a/README.md b/README.md index 756b836eea7..8af19271dfb 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ See deployment for notes on how to deploy the project on a live system. ### Prerequisites -1. Newest [.NET 8 SDK][5] +1. Newest [.NET 9 SDK][5] 2. [Node.js][6] (Latest LTS version, v20.\*) 3. Newest [Git][7] 4. A code editor - we like [Visual Studio Code][8] @@ -187,7 +187,7 @@ This project is licensed under the 3-Clause BSD License - see the [LICENSE.md](L [2]: https://docs.altinn.studio/altinn-studio/getting-started/ [3]: https://docs.altinn.studio/altinn-studio/getting-started/app-dev-course/ [4]: https://github.com/Altinn/app-localtest -[5]: https://dotnet.microsoft.com/download/dotnet/8.0 +[5]: https://dotnet.microsoft.com/download/dotnet/9.0 [6]: https://nodejs.org [7]: https://git-scm.com/downloads [8]: https://code.visualstudio.com/Download diff --git a/backend/src/Designer/Migrations/20241113194515_Test.Designer.cs b/backend/src/Designer/Migrations/20241113194515_Test.Designer.cs new file mode 100644 index 00000000000..e53587cea85 --- /dev/null +++ b/backend/src/Designer/Migrations/20241113194515_Test.Designer.cs @@ -0,0 +1,175 @@ +// +using System; +using Altinn.Studio.Designer.Repository.ORMImplementation.Data; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; + +#nullable disable + +namespace Altinn.Studio.Designer.Migrations +{ + [DbContext(typeof(DesignerdbContext))] + [Migration("20241113194515_Test")] + partial class Test + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "8.0.10") + .HasAnnotation("Relational:MaxIdentifierLength", 63); + + NpgsqlModelBuilderExtensions.UseSerialColumns(modelBuilder); + + modelBuilder.Entity("Altinn.Studio.Designer.Repository.ORMImplementation.Models.AppScopesDbObject", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("App") + .IsRequired() + .HasColumnType("character varying") + .HasColumnName("app"); + + b.Property("Created") + .HasColumnType("timestamptz") + .HasColumnName("created"); + + b.Property("CreatedBy") + .HasColumnType("character varying") + .HasColumnName("created_by"); + + b.Property("LastModifiedBy") + .HasColumnType("character varying") + .HasColumnName("last_modified_by"); + + b.Property("Org") + .IsRequired() + .HasColumnType("character varying") + .HasColumnName("org"); + + b.Property("Scopes") + .IsRequired() + .HasColumnType("jsonb") + .HasColumnName("scopes"); + + b.Property("Version") + .IsConcurrencyToken() + .ValueGeneratedOnAddOrUpdate() + .HasColumnType("xid") + .HasColumnName("xmin"); + + b.HasKey("Id") + .HasName("app_scopes_pkey"); + + b.HasIndex(new[] { "Org", "App" }, "idx_app_scopes_org_app") + .IsUnique(); + + b.ToTable("app_scopes", "designer"); + }); + + modelBuilder.Entity("Altinn.Studio.Designer.Repository.ORMImplementation.Models.Deployment", b => + { + b.Property("Sequenceno") + .ValueGeneratedOnAdd() + .HasColumnType("BIGSERIAL") + .HasColumnName("sequenceno"); + + NpgsqlPropertyBuilderExtensions.UseSerialColumn(b.Property("Sequenceno")); + + b.Property("App") + .HasColumnType("character varying") + .HasColumnName("app"); + + b.Property("Buildid") + .HasColumnType("character varying") + .HasColumnName("buildid"); + + b.Property("Buildresult") + .HasColumnType("character varying") + .HasColumnName("buildresult"); + + b.Property("Created") + .HasColumnType("timestamptz") + .HasColumnName("created"); + + b.Property("Entity") + .HasColumnType("text") + .HasColumnName("entity"); + + b.Property("Org") + .HasColumnType("character varying") + .HasColumnName("org"); + + b.Property("Tagname") + .HasColumnType("character varying") + .HasColumnName("tagname"); + + b.HasKey("Sequenceno") + .HasName("deployments_pkey"); + + b.HasIndex(new[] { "Org", "App" }, "idx_deployments_org_app"); + + b.ToTable("deployments", "designer"); + }); + + modelBuilder.Entity("Altinn.Studio.Designer.Repository.ORMImplementation.Models.Release", b => + { + b.Property("Sequenceno") + .ValueGeneratedOnAdd() + .HasColumnType("BIGSERIAL") + .HasColumnName("sequenceno"); + + NpgsqlPropertyBuilderExtensions.UseSerialColumn(b.Property("Sequenceno")); + + b.Property("App") + .HasColumnType("character varying") + .HasColumnName("app"); + + b.Property("Buildid") + .HasColumnType("character varying") + .HasColumnName("buildid"); + + b.Property("Buildresult") + .HasColumnType("character varying") + .HasColumnName("buildresult"); + + b.Property("Buildstatus") + .HasColumnType("character varying") + .HasColumnName("buildstatus"); + + b.Property("Created") + .HasColumnType("timestamptz") + .HasColumnName("created"); + + b.Property("Entity") + .HasColumnType("text") + .HasColumnName("entity"); + + b.Property("Org") + .HasColumnType("character varying") + .HasColumnName("org"); + + b.Property("Tagname") + .HasColumnType("character varying") + .HasColumnName("tagname"); + + b.HasKey("Sequenceno") + .HasName("releases_pkey"); + + b.HasIndex(new[] { "Org", "App" }, "idx_releases_org_app"); + + b.ToTable("releases", "designer"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/backend/src/Designer/Migrations/20241113194515_Test.cs b/backend/src/Designer/Migrations/20241113194515_Test.cs new file mode 100644 index 00000000000..2052b7b9cbe --- /dev/null +++ b/backend/src/Designer/Migrations/20241113194515_Test.cs @@ -0,0 +1,22 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace Altinn.Studio.Designer.Migrations +{ + /// + public partial class Test : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + + } + } +}