Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 26 additions & 87 deletions ifrs17-template/Database/MigrationAndScaffolding/Initial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
{
"cell_type": "code",
"source": [
"[Migration(\"20230412161547_InitialTypes\")]",
"[Migration(\"20230424082837_InitialTypes\")]",
"\npublic class InitialTypes : Migration",
"\n{",
"\n protected override void Up(MigrationBuilder migrationBuilder)",
Expand Down Expand Up @@ -233,28 +233,23 @@
"\n });",
"\n",
"\n migrationBuilder.CreateTable(",
"\n name: \"ExportFile\",",
"\n columns: table => new",
"\n {",
"\n Id = table.Column<Guid>(type: \"uniqueidentifier\", nullable: false),",
"\n Name = table.Column<string>(type: \"nvarchar(max)\", nullable: true),",
"\n ContentType = table.Column<string>(type: \"nvarchar(max)\", nullable: true),",
"\n CreationTime = table.Column<DateTime>(type: \"datetime2\", nullable: false),",
"\n SerializedContent = table.Column<byte[]>(type: \"varbinary(max)\", nullable: true),",
"\n Length = table.Column<long>(type: \"bigint\", nullable: true),",
"\n Format = table.Column<string>(type: \"nvarchar(max)\", nullable: true)",
"\n },",
"\n constraints: table =>",
"\n {",
"\n table.PrimaryKey(\"PK_ExportFile\", x => x.Id);",
"\n });",
"\n",
"\n migrationBuilder.CreateTable(",
"\n name: \"IfrsVariable\",",
"\n columns: table => new",
"\n {",
"\n Id = table.Column<Guid>(type: \"uniqueidentifier\", nullable: false),",
"\n Value = table.Column<double>(type: \"float\", nullable: false),",
"\n Value1 = table.Column<double>(type: \"float\", nullable: false),",
"\n Value2 = table.Column<double>(type: \"float\", nullable: false),",
"\n Value3 = table.Column<double>(type: \"float\", nullable: false),",
"\n Value4 = table.Column<double>(type: \"float\", nullable: false),",
"\n Value5 = table.Column<double>(type: \"float\", nullable: false),",
"\n Value6 = table.Column<double>(type: \"float\", nullable: false),",
"\n Value7 = table.Column<double>(type: \"float\", nullable: false),",
"\n Value8 = table.Column<double>(type: \"float\", nullable: false),",
"\n Value9 = table.Column<double>(type: \"float\", nullable: false),",
"\n Value10 = table.Column<double>(type: \"float\", nullable: false),",
"\n Value11 = table.Column<double>(type: \"float\", nullable: false),",
"\n Value12 = table.Column<double>(type: \"float\", nullable: false),",
"\n EstimateType = table.Column<string>(type: \"nvarchar(max)\", nullable: true),",
"\n EconomicBasis = table.Column<string>(type: \"nvarchar(max)\", nullable: true),",
"\n DataNode = table.Column<string>(type: \"nvarchar(max)\", nullable: true),",
Expand All @@ -270,22 +265,7 @@
"\n });",
"\n",
"\n migrationBuilder.CreateTable(",
"\n name: \"ImportDataSet\",",
"\n columns: table => new",
"\n {",
"\n Id = table.Column<Guid>(type: \"uniqueidentifier\", nullable: false),",
"\n CreationTime = table.Column<DateTime>(type: \"datetime2\", nullable: false),",
"\n SerializedContent = table.Column<byte[]>(type: \"varbinary(max)\", nullable: true),",
"\n Length = table.Column<long>(type: \"bigint\", nullable: true),",
"\n Format = table.Column<string>(type: \"nvarchar(max)\", nullable: true)",
"\n },",
"\n constraints: table =>",
"\n {",
"\n table.PrimaryKey(\"PK_ImportDataSet\", x => x.Id);",
"\n });",
"\n",
"\n migrationBuilder.CreateTable(",
"\n name: \"ImportExportActivity\",",
"\n name: \"IOActivity\",",
"\n columns: table => new",
"\n {",
"\n Id = table.Column<Guid>(type: \"uniqueidentifier\", nullable: false),",
Expand All @@ -302,58 +282,29 @@
"\n },",
"\n constraints: table =>",
"\n {",
"\n table.PrimaryKey(\"PK_ImportExportActivity\", x => x.Id);",
"\n table.PrimaryKey(\"PK_IOActivity\", x => x.Id);",
"\n });",
"\n",
"\n migrationBuilder.CreateTable(",
"\n name: \"ImportFile\",",
"\n name: \"IOContent\",",
"\n columns: table => new",
"\n {",
"\n Id = table.Column<Guid>(type: \"uniqueidentifier\", nullable: false),",
"\n CreationTime = table.Column<DateTime>(type: \"datetime2\", nullable: false),",
"\n SerializedContent = table.Column<byte[]>(type: \"varbinary(max)\", nullable: true),",
"\n Length = table.Column<long>(type: \"bigint\", nullable: true),",
"\n Format = table.Column<string>(type: \"nvarchar(max)\", nullable: true),",
"\n Name = table.Column<string>(type: \"nvarchar(max)\", nullable: true),",
"\n Directory = table.Column<string>(type: \"nvarchar(max)\", nullable: true),",
"\n ContentType = table.Column<string>(type: \"nvarchar(max)\", nullable: true),",
"\n Discriminator = table.Column<string>(type: \"nvarchar(max)\", nullable: false),",
"\n Directory = table.Column<string>(type: \"nvarchar(max)\", nullable: true),",
"\n Partition = table.Column<string>(type: \"nvarchar(max)\", nullable: true),",
"\n Source = table.Column<string>(type: \"nvarchar(max)\", nullable: true),",
"\n CreationTime = table.Column<DateTime>(type: \"datetime2\", nullable: false),",
"\n SerializedContent = table.Column<byte[]>(type: \"varbinary(max)\", nullable: true),",
"\n Length = table.Column<long>(type: \"bigint\", nullable: true),",
"\n Format = table.Column<string>(type: \"nvarchar(max)\", nullable: true)",
"\n Content = table.Column<string>(type: \"nvarchar(max)\", nullable: true)",
"\n },",
"\n constraints: table =>",
"\n {",
"\n table.PrimaryKey(\"PK_ImportFile\", x => x.Id);",
"\n });",
"\n",
"\n migrationBuilder.CreateTable(",
"\n name: \"ImportStream\",",
"\n columns: table => new",
"\n {",
"\n Id = table.Column<Guid>(type: \"uniqueidentifier\", nullable: false),",
"\n CreationTime = table.Column<DateTime>(type: \"datetime2\", nullable: false),",
"\n SerializedContent = table.Column<byte[]>(type: \"varbinary(max)\", nullable: true),",
"\n Length = table.Column<long>(type: \"bigint\", nullable: true),",
"\n Format = table.Column<string>(type: \"nvarchar(max)\", nullable: true)",
"\n },",
"\n constraints: table =>",
"\n {",
"\n table.PrimaryKey(\"PK_ImportStream\", x => x.Id);",
"\n });",
"\n",
"\n migrationBuilder.CreateTable(",
"\n name: \"ImportString\",",
"\n columns: table => new",
"\n {",
"\n Id = table.Column<Guid>(type: \"uniqueidentifier\", nullable: false),",
"\n Content = table.Column<string>(type: \"nvarchar(max)\", nullable: true),",
"\n CreationTime = table.Column<DateTime>(type: \"datetime2\", nullable: false),",
"\n SerializedContent = table.Column<byte[]>(type: \"varbinary(max)\", nullable: true),",
"\n Length = table.Column<long>(type: \"bigint\", nullable: true),",
"\n Format = table.Column<string>(type: \"nvarchar(max)\", nullable: true)",
"\n },",
"\n constraints: table =>",
"\n {",
"\n table.PrimaryKey(\"PK_ImportString\", x => x.Id);",
"\n table.PrimaryKey(\"PK_IOContent\", x => x.Id);",
"\n });",
"\n",
"\n migrationBuilder.CreateTable(",
Expand Down Expand Up @@ -646,25 +597,13 @@
"\n name: \"ExchangeRate\");",
"\n",
"\n migrationBuilder.DropTable(",
"\n name: \"ExportFile\");",
"\n",
"\n migrationBuilder.DropTable(",
"\n name: \"IfrsVariable\");",
"\n",
"\n migrationBuilder.DropTable(",
"\n name: \"ImportDataSet\");",
"\n",
"\n migrationBuilder.DropTable(",
"\n name: \"ImportExportActivity\");",
"\n",
"\n migrationBuilder.DropTable(",
"\n name: \"ImportFile\");",
"\n",
"\n migrationBuilder.DropTable(",
"\n name: \"ImportStream\");",
"\n name: \"IOActivity\");",
"\n",
"\n migrationBuilder.DropTable(",
"\n name: \"ImportString\");",
"\n name: \"IOContent\");",
"\n",
"\n migrationBuilder.DropTable(",
"\n name: \"LiabilityType\");",
Expand Down
Loading