Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
IoTSharp
IoTSharp
提交
f8b658ba
IoTSharp
项目概览
IoTSharp
/
IoTSharp
9 个月 前同步成功
通知
15
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
IoTSharp
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
f8b658ba
编写于
2月 12, 2022
作者:
麦壳饼
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
调整mysql和pgsql sqlite相关的数据库结构体。
上级
c698ed45
变更
11
展开全部
隐藏空白更改
内联
并排
Showing
11 changed file
with
10183 addition
and
686 deletion
+10183
-686
IoTSharp.Data.MySQL/Migrations/20220212025925_AddTenantInfoAndToken.cs
....MySQL/Migrations/20220212025925_AddTenantInfoAndToken.cs
+0
-106
IoTSharp.Data.MySQL/Migrations/20220212100754_FixTenantInfo.Designer.cs
...MySQL/Migrations/20220212100754_FixTenantInfo.Designer.cs
+100
-146
IoTSharp.Data.MySQL/Migrations/20220212100754_FixTenantInfo.cs
...arp.Data.MySQL/Migrations/20220212100754_FixTenantInfo.cs
+1894
-0
IoTSharp.Data.MySQL/Migrations/ApplicationDbContextModelSnapshot.cs
...ata.MySQL/Migrations/ApplicationDbContextModelSnapshot.cs
+98
-144
IoTSharp.Data.PostgreSQL/Migrations/20220212100327_FixTenantInfo.Designer.cs
...reSQL/Migrations/20220212100327_FixTenantInfo.Designer.cs
+2290
-0
IoTSharp.Data.PostgreSQL/Migrations/20220212100327_FixTenantInfo.cs
...ata.PostgreSQL/Migrations/20220212100327_FixTenantInfo.cs
+1667
-0
IoTSharp.Data.PostgreSQL/Migrations/ApplicationDbContextModelSnapshot.cs
...ostgreSQL/Migrations/ApplicationDbContextModelSnapshot.cs
+98
-144
IoTSharp.Data.Sqlite/Migrations/20220212100305_FixTenantInfo.Designer.cs
...qlite/Migrations/20220212100305_FixTenantInfo.Designer.cs
+2269
-0
IoTSharp.Data.Sqlite/Migrations/20220212100305_FixTenantInfo.cs
...rp.Data.Sqlite/Migrations/20220212100305_FixTenantInfo.cs
+1667
-0
IoTSharp.Data.Sqlite/Migrations/ApplicationDbContextModelSnapshot.cs
...ta.Sqlite/Migrations/ApplicationDbContextModelSnapshot.cs
+98
-144
IoTSharp/appsettings.MySql.json
IoTSharp/appsettings.MySql.json
+2
-2
未找到文件。
IoTSharp.Data.MySQL/Migrations/20220212025925_AddTenantInfoAndToken.cs
已删除
100644 → 0
浏览文件 @
c698ed45
using
System
;
using
Microsoft.EntityFrameworkCore.Migrations
;
#
nullable
disable
namespace
IoTSharp.Data.MySql.Migrations
{
public
partial
class
AddTenantInfoAndToken
:
Migration
{
protected
override
void
Up
(
MigrationBuilder
migrationBuilder
)
{
migrationBuilder
.
DropForeignKey
(
name
:
"FK_BaseEvents_Customer_CustomerId"
,
table
:
"BaseEvents"
);
migrationBuilder
.
DropForeignKey
(
name
:
"FK_BaseEvents_Tenant_TenantId"
,
table
:
"BaseEvents"
);
migrationBuilder
.
AlterColumn
<
Guid
>(
name
:
"TenantId"
,
table
:
"BaseEvents"
,
type
:
"char(36)"
,
nullable
:
true
,
collation
:
"ascii_general_ci"
,
oldClrType
:
typeof
(
Guid
),
oldType
:
"char(36)"
)
.
OldAnnotation
(
"Relational:Collation"
,
"ascii_general_ci"
);
migrationBuilder
.
AlterColumn
<
Guid
>(
name
:
"CustomerId"
,
table
:
"BaseEvents"
,
type
:
"char(36)"
,
nullable
:
true
,
collation
:
"ascii_general_ci"
,
oldClrType
:
typeof
(
Guid
),
oldType
:
"char(36)"
)
.
OldAnnotation
(
"Relational:Collation"
,
"ascii_general_ci"
);
migrationBuilder
.
AddForeignKey
(
name
:
"FK_BaseEvents_Customer_CustomerId"
,
table
:
"BaseEvents"
,
column
:
"CustomerId"
,
principalTable
:
"Customer"
,
principalColumn
:
"Id"
);
migrationBuilder
.
AddForeignKey
(
name
:
"FK_BaseEvents_Tenant_TenantId"
,
table
:
"BaseEvents"
,
column
:
"TenantId"
,
principalTable
:
"Tenant"
,
principalColumn
:
"Id"
);
}
protected
override
void
Down
(
MigrationBuilder
migrationBuilder
)
{
migrationBuilder
.
DropForeignKey
(
name
:
"FK_BaseEvents_Customer_CustomerId"
,
table
:
"BaseEvents"
);
migrationBuilder
.
DropForeignKey
(
name
:
"FK_BaseEvents_Tenant_TenantId"
,
table
:
"BaseEvents"
);
migrationBuilder
.
AlterColumn
<
Guid
>(
name
:
"TenantId"
,
table
:
"BaseEvents"
,
type
:
"char(36)"
,
nullable
:
false
,
defaultValue
:
new
Guid
(
"00000000-0000-0000-0000-000000000000"
),
collation
:
"ascii_general_ci"
,
oldClrType
:
typeof
(
Guid
),
oldType
:
"char(36)"
,
oldNullable
:
true
)
.
OldAnnotation
(
"Relational:Collation"
,
"ascii_general_ci"
);
migrationBuilder
.
AlterColumn
<
Guid
>(
name
:
"CustomerId"
,
table
:
"BaseEvents"
,
type
:
"char(36)"
,
nullable
:
false
,
defaultValue
:
new
Guid
(
"00000000-0000-0000-0000-000000000000"
),
collation
:
"ascii_general_ci"
,
oldClrType
:
typeof
(
Guid
),
oldType
:
"char(36)"
,
oldNullable
:
true
)
.
OldAnnotation
(
"Relational:Collation"
,
"ascii_general_ci"
);
migrationBuilder
.
AddForeignKey
(
name
:
"FK_BaseEvents_Customer_CustomerId"
,
table
:
"BaseEvents"
,
column
:
"CustomerId"
,
principalTable
:
"Customer"
,
principalColumn
:
"Id"
,
onDelete
:
ReferentialAction
.
Cascade
);
migrationBuilder
.
AddForeignKey
(
name
:
"FK_BaseEvents_Tenant_TenantId"
,
table
:
"BaseEvents"
,
column
:
"TenantId"
,
principalTable
:
"Tenant"
,
principalColumn
:
"Id"
,
onDelete
:
ReferentialAction
.
Cascade
);
}
}
}
IoTSharp.Data.MySQL/Migrations/20220212
025925_AddTenantInfoAndToken
.Designer.cs
→
IoTSharp.Data.MySQL/Migrations/20220212
100754_FixTenantInfo
.Designer.cs
浏览文件 @
f8b658ba
此差异已折叠。
点击以展开。
IoTSharp.Data.MySQL/Migrations/20220212100754_FixTenantInfo.cs
0 → 100644
浏览文件 @
f8b658ba
此差异已折叠。
点击以展开。
IoTSharp.Data.MySQL/Migrations/ApplicationDbContextModelSnapshot.cs
浏览文件 @
f8b658ba
此差异已折叠。
点击以展开。
IoTSharp.Data.PostgreSQL/Migrations/20220212100327_FixTenantInfo.Designer.cs
0 → 100644
浏览文件 @
f8b658ba
此差异已折叠。
点击以展开。
IoTSharp.Data.PostgreSQL/Migrations/20220212100327_FixTenantInfo.cs
0 → 100644
浏览文件 @
f8b658ba
此差异已折叠。
点击以展开。
IoTSharp.Data.PostgreSQL/Migrations/ApplicationDbContextModelSnapshot.cs
浏览文件 @
f8b658ba
此差异已折叠。
点击以展开。
IoTSharp.Data.Sqlite/Migrations/20220212100305_FixTenantInfo.Designer.cs
0 → 100644
浏览文件 @
f8b658ba
此差异已折叠。
点击以展开。
IoTSharp.Data.Sqlite/Migrations/20220212100305_FixTenantInfo.cs
0 → 100644
浏览文件 @
f8b658ba
此差异已折叠。
点击以展开。
IoTSharp.Data.Sqlite/Migrations/ApplicationDbContextModelSnapshot.cs
浏览文件 @
f8b658ba
此差异已折叠。
点击以展开。
IoTSharp/appsettings.MySql.json
浏览文件 @
f8b658ba
...
...
@@ -8,8 +8,8 @@
},
"DataBase"
:
"MySql"
,
"ConnectionStrings"
:
{
"IoTSharp"
:
"server=localhost;user=root;password=kissme;database=IoTSharp"
,
"TelemetryStorage"
:
"server=localhost;user=root;password=kissme;database=IoTSharp"
"IoTSharp"
:
"server=localhost;user=root;password=kissme;database=IoTSharp
1
"
,
"TelemetryStorage"
:
"server=localhost;user=root;password=kissme;database=IoTSharp
1
"
},
"JwtKey"
:
"kissmekissmekissmekissmekissmekissmekissmekissmekissmekissmekissmekissmekissmekissmekissmekissme"
,
"JwtExpireHours"
:
3
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录