aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/Migrations
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2020-08-02 00:04:06 +0200
committerivarlovlie <git@ivarlovlie.no>2020-08-02 00:04:06 +0200
commitc7d72be2d1eed9b7fbfe719752ff800653d8c089 (patch)
tree6c92e3e434bb49efc84a84c3c170a560728df93e /src/server/Migrations
parentf055808ca22d3df5e5984a1e27ef6aa49bcc5b9b (diff)
downloaddough-c7d72be2d1eed9b7fbfe719752ff800653d8c089.tar.xz
dough-c7d72be2d1eed9b7fbfe719752ff800653d8c089.zip
change db, set cookie
Diffstat (limited to 'src/server/Migrations')
-rw-r--r--src/server/Migrations/20200801205356_INITIAL_MIGRATION.Designer.cs (renamed from src/server/Migrations/20200729090558_Initial.Designer.cs)75
-rw-r--r--src/server/Migrations/20200801205356_INITIAL_MIGRATION.cs (renamed from src/server/Migrations/20200729090558_Initial.cs)4
-rw-r--r--src/server/Migrations/MainDbContextModelSnapshot.cs71
3 files changed, 76 insertions, 74 deletions
diff --git a/src/server/Migrations/20200729090558_Initial.Designer.cs b/src/server/Migrations/20200801205356_INITIAL_MIGRATION.Designer.cs
index 9657f66..b693783 100644
--- a/src/server/Migrations/20200729090558_Initial.Designer.cs
+++ b/src/server/Migrations/20200801205356_INITIAL_MIGRATION.Designer.cs
@@ -1,127 +1,128 @@
// <auto-generated />
using System;
+using Dough.Models.Database;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-using Dough.Models.Database;
namespace Dough.Migrations
{
[DbContext(typeof(MainDbContext))]
- [Migration("20200729090558_Initial")]
- partial class Initial
+ [Migration("20200801205356_INITIAL_MIGRATION")]
+ partial class INITIAL_MIGRATION
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
- .HasAnnotation("ProductVersion", "3.1.6");
+ .HasAnnotation("ProductVersion", "3.1.6")
+ .HasAnnotation("Relational:MaxIdentifierLength", 64);
- modelBuilder.Entity("MoneyManager.Models.Database.Category", b =>
+ modelBuilder.Entity("Dough.Models.Database.Category", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
- .HasColumnType("TEXT");
+ .HasColumnType("char(36)");
b.Property<DateTime>("Created")
- .HasColumnType("TEXT");
+ .HasColumnType("datetime(6)");
b.Property<Guid?>("CreatedBy")
- .HasColumnType("TEXT");
+ .HasColumnType("char(36)");
b.Property<bool>("Hidden")
- .HasColumnType("INTEGER");
+ .HasColumnType("tinyint(1)");
b.Property<string>("Name")
- .HasColumnType("TEXT");
+ .HasColumnType("longtext CHARACTER SET utf8mb4");
b.HasKey("Id");
b.ToTable("Categories");
});
- modelBuilder.Entity("MoneyManager.Models.Database.Payee", b =>
+ modelBuilder.Entity("Dough.Models.Database.Payee", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
- .HasColumnType("TEXT");
+ .HasColumnType("char(36)");
b.Property<DateTime>("Created")
- .HasColumnType("TEXT");
+ .HasColumnType("datetime(6)");
b.Property<Guid?>("CreatedBy")
- .HasColumnType("TEXT");
+ .HasColumnType("char(36)");
b.Property<bool>("Hidden")
- .HasColumnType("INTEGER");
+ .HasColumnType("tinyint(1)");
b.Property<string>("Name")
- .HasColumnType("TEXT");
+ .HasColumnType("longtext CHARACTER SET utf8mb4");
b.HasKey("Id");
b.ToTable("Payees");
});
- modelBuilder.Entity("MoneyManager.Models.Database.Transaction", b =>
+ modelBuilder.Entity("Dough.Models.Database.Transaction", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
- .HasColumnType("TEXT");
+ .HasColumnType("char(36)");
b.Property<double>("Amount")
- .HasColumnType("REAL");
+ .HasColumnType("double");
b.Property<Guid>("CategoryId")
- .HasColumnType("TEXT");
+ .HasColumnType("char(36)");
b.Property<DateTime>("Created")
- .HasColumnType("TEXT");
+ .HasColumnType("datetime(6)");
b.Property<Guid?>("CreatedBy")
- .HasColumnType("TEXT");
+ .HasColumnType("char(36)");
b.Property<DateTime>("Date")
- .HasColumnType("TEXT");
+ .HasColumnType("datetime(6)");
b.Property<bool>("Hidden")
- .HasColumnType("INTEGER");
+ .HasColumnType("tinyint(1)");
b.Property<string>("Note")
- .HasColumnType("TEXT");
+ .HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<Guid>("PayeeId")
- .HasColumnType("TEXT");
+ .HasColumnType("char(36)");
b.Property<string>("Tags")
- .HasColumnType("TEXT");
+ .HasColumnType("longtext CHARACTER SET utf8mb4");
b.HasKey("Id");
b.ToTable("Transactions");
});
- modelBuilder.Entity("MoneyManager.Models.Database.User", b =>
+ modelBuilder.Entity("Dough.Models.Database.User", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
- .HasColumnType("TEXT");
+ .HasColumnType("char(36)");
b.Property<DateTime>("Created")
- .HasColumnType("TEXT");
+ .HasColumnType("datetime(6)");
b.Property<Guid?>("CreatedBy")
- .HasColumnType("TEXT");
+ .HasColumnType("char(36)");
b.Property<bool>("Hidden")
- .HasColumnType("INTEGER");
+ .HasColumnType("tinyint(1)");
b.Property<string>("Password")
- .HasColumnType("TEXT");
+ .HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("Username")
- .HasColumnType("TEXT");
+ .HasColumnType("longtext CHARACTER SET utf8mb4");
b.HasKey("Id");
@@ -130,10 +131,10 @@ namespace Dough.Migrations
b.HasData(
new
{
- Id = new Guid("193053d0-4292-4dc5-baae-59a920b64891"),
- Created = new DateTime(2020, 7, 29, 9, 5, 57, 914, DateTimeKind.Utc).AddTicks(3427),
+ Id = new Guid("4fb39ecf-9619-42be-8852-81c48a9a9f72"),
+ Created = new DateTime(2020, 8, 1, 20, 53, 56, 576, DateTimeKind.Utc).AddTicks(931),
Hidden = false,
- Password = "$2b$10$RFdcYLeqporq94pUIOoJGOPnhUbpV7R4e.2Iz8ot02N2PqeCpDCA6",
+ Password = "$2b$10$v7e7AJc0atQvyvvwkvXAnuin0m75qRZSxcSAHdDiKcSHuByJpc0zy",
Username = "ivar"
});
});
diff --git a/src/server/Migrations/20200729090558_Initial.cs b/src/server/Migrations/20200801205356_INITIAL_MIGRATION.cs
index 5dc0b40..f6495ae 100644
--- a/src/server/Migrations/20200729090558_Initial.cs
+++ b/src/server/Migrations/20200801205356_INITIAL_MIGRATION.cs
@@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
namespace Dough.Migrations
{
- public partial class Initial : Migration
+ public partial class INITIAL_MIGRATION : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
@@ -76,7 +76,7 @@ namespace Dough.Migrations
migrationBuilder.InsertData(
table: "Users",
columns: new[] { "Id", "Created", "CreatedBy", "Hidden", "Password", "Username" },
- values: new object[] { new Guid("193053d0-4292-4dc5-baae-59a920b64891"), new DateTime(2020, 7, 29, 9, 5, 57, 914, DateTimeKind.Utc).AddTicks(3427), null, false, "$2b$10$RFdcYLeqporq94pUIOoJGOPnhUbpV7R4e.2Iz8ot02N2PqeCpDCA6", "ivar" });
+ values: new object[] { new Guid("4fb39ecf-9619-42be-8852-81c48a9a9f72"), new DateTime(2020, 8, 1, 20, 53, 56, 576, DateTimeKind.Utc).AddTicks(931), null, false, "$2b$10$v7e7AJc0atQvyvvwkvXAnuin0m75qRZSxcSAHdDiKcSHuByJpc0zy", "ivar" });
}
protected override void Down(MigrationBuilder migrationBuilder)
diff --git a/src/server/Migrations/MainDbContextModelSnapshot.cs b/src/server/Migrations/MainDbContextModelSnapshot.cs
index ad883c5..d4c6e7e 100644
--- a/src/server/Migrations/MainDbContextModelSnapshot.cs
+++ b/src/server/Migrations/MainDbContextModelSnapshot.cs
@@ -1,9 +1,9 @@
// <auto-generated />
using System;
+using Dough.Models.Database;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-using Dough.Models.Database;
namespace Dough.Migrations
{
@@ -14,112 +14,113 @@ namespace Dough.Migrations
{
#pragma warning disable 612, 618
modelBuilder
- .HasAnnotation("ProductVersion", "3.1.6");
+ .HasAnnotation("ProductVersion", "3.1.6")
+ .HasAnnotation("Relational:MaxIdentifierLength", 64);
- modelBuilder.Entity("MoneyManager.Models.Database.Category", b =>
+ modelBuilder.Entity("Dough.Models.Database.Category", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
- .HasColumnType("TEXT");
+ .HasColumnType("char(36)");
b.Property<DateTime>("Created")
- .HasColumnType("TEXT");
+ .HasColumnType("datetime(6)");
b.Property<Guid?>("CreatedBy")
- .HasColumnType("TEXT");
+ .HasColumnType("char(36)");
b.Property<bool>("Hidden")
- .HasColumnType("INTEGER");
+ .HasColumnType("tinyint(1)");
b.Property<string>("Name")
- .HasColumnType("TEXT");
+ .HasColumnType("longtext CHARACTER SET utf8mb4");
b.HasKey("Id");
b.ToTable("Categories");
});
- modelBuilder.Entity("MoneyManager.Models.Database.Payee", b =>
+ modelBuilder.Entity("Dough.Models.Database.Payee", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
- .HasColumnType("TEXT");
+ .HasColumnType("char(36)");
b.Property<DateTime>("Created")
- .HasColumnType("TEXT");
+ .HasColumnType("datetime(6)");
b.Property<Guid?>("CreatedBy")
- .HasColumnType("TEXT");
+ .HasColumnType("char(36)");
b.Property<bool>("Hidden")
- .HasColumnType("INTEGER");
+ .HasColumnType("tinyint(1)");
b.Property<string>("Name")
- .HasColumnType("TEXT");
+ .HasColumnType("longtext CHARACTER SET utf8mb4");
b.HasKey("Id");
b.ToTable("Payees");
});
- modelBuilder.Entity("MoneyManager.Models.Database.Transaction", b =>
+ modelBuilder.Entity("Dough.Models.Database.Transaction", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
- .HasColumnType("TEXT");
+ .HasColumnType("char(36)");
b.Property<double>("Amount")
- .HasColumnType("REAL");
+ .HasColumnType("double");
b.Property<Guid>("CategoryId")
- .HasColumnType("TEXT");
+ .HasColumnType("char(36)");
b.Property<DateTime>("Created")
- .HasColumnType("TEXT");
+ .HasColumnType("datetime(6)");
b.Property<Guid?>("CreatedBy")
- .HasColumnType("TEXT");
+ .HasColumnType("char(36)");
b.Property<DateTime>("Date")
- .HasColumnType("TEXT");
+ .HasColumnType("datetime(6)");
b.Property<bool>("Hidden")
- .HasColumnType("INTEGER");
+ .HasColumnType("tinyint(1)");
b.Property<string>("Note")
- .HasColumnType("TEXT");
+ .HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<Guid>("PayeeId")
- .HasColumnType("TEXT");
+ .HasColumnType("char(36)");
b.Property<string>("Tags")
- .HasColumnType("TEXT");
+ .HasColumnType("longtext CHARACTER SET utf8mb4");
b.HasKey("Id");
b.ToTable("Transactions");
});
- modelBuilder.Entity("MoneyManager.Models.Database.User", b =>
+ modelBuilder.Entity("Dough.Models.Database.User", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
- .HasColumnType("TEXT");
+ .HasColumnType("char(36)");
b.Property<DateTime>("Created")
- .HasColumnType("TEXT");
+ .HasColumnType("datetime(6)");
b.Property<Guid?>("CreatedBy")
- .HasColumnType("TEXT");
+ .HasColumnType("char(36)");
b.Property<bool>("Hidden")
- .HasColumnType("INTEGER");
+ .HasColumnType("tinyint(1)");
b.Property<string>("Password")
- .HasColumnType("TEXT");
+ .HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("Username")
- .HasColumnType("TEXT");
+ .HasColumnType("longtext CHARACTER SET utf8mb4");
b.HasKey("Id");
@@ -128,10 +129,10 @@ namespace Dough.Migrations
b.HasData(
new
{
- Id = new Guid("193053d0-4292-4dc5-baae-59a920b64891"),
- Created = new DateTime(2020, 7, 29, 9, 5, 57, 914, DateTimeKind.Utc).AddTicks(3427),
+ Id = new Guid("4fb39ecf-9619-42be-8852-81c48a9a9f72"),
+ Created = new DateTime(2020, 8, 1, 20, 53, 56, 576, DateTimeKind.Utc).AddTicks(931),
Hidden = false,
- Password = "$2b$10$RFdcYLeqporq94pUIOoJGOPnhUbpV7R4e.2Iz8ot02N2PqeCpDCA6",
+ Password = "$2b$10$v7e7AJc0atQvyvvwkvXAnuin0m75qRZSxcSAHdDiKcSHuByJpc0zy",
Username = "ivar"
});
});