commit
cc24f4cb4b
1148 changed files with 367106 additions and 0 deletions
@ -0,0 +1,25 @@
|
||||
**/.classpath |
||||
**/.dockerignore |
||||
**/.env |
||||
**/.git |
||||
**/.gitignore |
||||
**/.project |
||||
**/.settings |
||||
**/.toolstarget |
||||
**/.vs |
||||
**/.vscode |
||||
**/*.*proj.user |
||||
**/*.dbmdl |
||||
**/*.jfm |
||||
**/azds.yaml |
||||
**/bin |
||||
**/charts |
||||
**/docker-compose* |
||||
**/Dockerfile* |
||||
**/node_modules |
||||
**/npm-debug.log |
||||
**/obj |
||||
**/secrets.dev.yaml |
||||
**/values.dev.yaml |
||||
LICENSE |
||||
README.md |
||||
@ -0,0 +1,63 @@
|
||||
############################################################################### |
||||
# Set default behavior to automatically normalize line endings. |
||||
############################################################################### |
||||
* text=auto |
||||
|
||||
############################################################################### |
||||
# Set default behavior for command prompt diff. |
||||
# |
||||
# This is need for earlier builds of msysgit that does not have it on by |
||||
# default for csharp files. |
||||
# Note: This is only used by command line |
||||
############################################################################### |
||||
#*.cs diff=csharp |
||||
|
||||
############################################################################### |
||||
# Set the merge driver for project and solution files |
||||
# |
||||
# Merging from the command prompt will add diff markers to the files if there |
||||
# are conflicts (Merging from VS is not affected by the settings below, in VS |
||||
# the diff markers are never inserted). Diff markers may cause the following |
||||
# file extensions to fail to load in VS. An alternative would be to treat |
||||
# these files as binary and thus will always conflict and require user |
||||
# intervention with every merge. To do so, just uncomment the entries below |
||||
############################################################################### |
||||
#*.sln merge=binary |
||||
#*.csproj merge=binary |
||||
#*.vbproj merge=binary |
||||
#*.vcxproj merge=binary |
||||
#*.vcproj merge=binary |
||||
#*.dbproj merge=binary |
||||
#*.fsproj merge=binary |
||||
#*.lsproj merge=binary |
||||
#*.wixproj merge=binary |
||||
#*.modelproj merge=binary |
||||
#*.sqlproj merge=binary |
||||
#*.wwaproj merge=binary |
||||
|
||||
############################################################################### |
||||
# behavior for image files |
||||
# |
||||
# image files are treated as binary by default. |
||||
############################################################################### |
||||
#*.jpg binary |
||||
#*.png binary |
||||
#*.gif binary |
||||
|
||||
############################################################################### |
||||
# diff behavior for common document formats |
||||
# |
||||
# Convert binary document formats to text before diffing them. This feature |
||||
# is only available from the command line. Turn it on by uncommenting the |
||||
# entries below. |
||||
############################################################################### |
||||
#*.doc diff=astextplain |
||||
#*.DOC diff=astextplain |
||||
#*.docx diff=astextplain |
||||
#*.DOCX diff=astextplain |
||||
#*.dot diff=astextplain |
||||
#*.DOT diff=astextplain |
||||
#*.pdf diff=astextplain |
||||
#*.PDF diff=astextplain |
||||
#*.rtf diff=astextplain |
||||
#*.RTF diff=astextplain |
||||
@ -0,0 +1,403 @@
|
||||
# ---> VisualStudio |
||||
## Ignore Visual Studio temporary files, build results, and |
||||
## files generated by popular Visual Studio add-ons. |
||||
## |
||||
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore |
||||
|
||||
# User-specific files |
||||
*.rsuser |
||||
*.suo |
||||
*.user |
||||
*.userosscache |
||||
*.sln.docstates |
||||
|
||||
# User-specific files (MonoDevelop/Xamarin Studio) |
||||
*.userprefs |
||||
|
||||
# Mono auto generated files |
||||
mono_crash.* |
||||
|
||||
# Build results |
||||
[Dd]ebug/ |
||||
[Dd]ebugPublic/ |
||||
[Rr]elease/ |
||||
[Rr]eleases/ |
||||
x64/ |
||||
x86/ |
||||
[Ww][Ii][Nn]32/ |
||||
[Aa][Rr][Mm]/ |
||||
[Aa][Rr][Mm]64/ |
||||
bld/ |
||||
[Bb]in/ |
||||
[Oo]bj/ |
||||
[Ll]og/ |
||||
[Ll]ogs/ |
||||
|
||||
# Visual Studio 2015/2017 cache/options directory |
||||
.vs/ |
||||
# Uncomment if you have tasks that create the project's static files in wwwroot |
||||
#wwwroot/ |
||||
|
||||
# Visual Studio 2017 auto generated files |
||||
Generated\ Files/ |
||||
|
||||
# MSTest test Results |
||||
[Tt]est[Rr]esult*/ |
||||
[Bb]uild[Ll]og.* |
||||
|
||||
# NUnit |
||||
*.VisualState.xml |
||||
TestResult.xml |
||||
nunit-*.xml |
||||
|
||||
# Build Results of an ATL Project |
||||
[Dd]ebugPS/ |
||||
[Rr]eleasePS/ |
||||
dlldata.c |
||||
|
||||
# Benchmark Results |
||||
BenchmarkDotNet.Artifacts/ |
||||
|
||||
# .NET Core |
||||
project.lock.json |
||||
project.fragment.lock.json |
||||
artifacts/ |
||||
|
||||
# ASP.NET Scaffolding |
||||
ScaffoldingReadMe.txt |
||||
|
||||
# StyleCop |
||||
StyleCopReport.xml |
||||
|
||||
# Files built by Visual Studio |
||||
*_i.c |
||||
*_p.c |
||||
*_h.h |
||||
*.ilk |
||||
*.meta |
||||
*.obj |
||||
*.iobj |
||||
*.pch |
||||
*.pdb |
||||
*.ipdb |
||||
*.pgc |
||||
*.pgd |
||||
*.rsp |
||||
*.sbr |
||||
*.tlb |
||||
*.tli |
||||
*.tlh |
||||
*.tmp |
||||
*.tmp_proj |
||||
*_wpftmp.csproj |
||||
*.log |
||||
*.tlog |
||||
*.vspscc |
||||
*.vssscc |
||||
.builds |
||||
*.pidb |
||||
*.svclog |
||||
*.scc |
||||
|
||||
# Chutzpah Test files |
||||
_Chutzpah* |
||||
|
||||
# Visual C++ cache files |
||||
ipch/ |
||||
*.aps |
||||
*.ncb |
||||
*.opendb |
||||
*.opensdf |
||||
*.sdf |
||||
*.cachefile |
||||
*.VC.db |
||||
*.VC.VC.opendb |
||||
|
||||
# Visual Studio profiler |
||||
*.psess |
||||
*.vsp |
||||
*.vspx |
||||
*.sap |
||||
|
||||
# Visual Studio Trace Files |
||||
*.e2e |
||||
|
||||
# TFS 2012 Local Workspace |
||||
$tf/ |
||||
|
||||
# Guidance Automation Toolkit |
||||
*.gpState |
||||
|
||||
# ReSharper is a .NET coding add-in |
||||
_ReSharper*/ |
||||
*.[Rr]e[Ss]harper |
||||
*.DotSettings.user |
||||
|
||||
# TeamCity is a build add-in |
||||
_TeamCity* |
||||
|
||||
# DotCover is a Code Coverage Tool |
||||
*.dotCover |
||||
|
||||
# AxoCover is a Code Coverage Tool |
||||
.axoCover/* |
||||
!.axoCover/settings.json |
||||
|
||||
# Coverlet is a free, cross platform Code Coverage Tool |
||||
coverage*.json |
||||
coverage*.xml |
||||
coverage*.info |
||||
|
||||
# Visual Studio code coverage results |
||||
*.coverage |
||||
*.coveragexml |
||||
|
||||
# NCrunch |
||||
_NCrunch_* |
||||
.*crunch*.local.xml |
||||
nCrunchTemp_* |
||||
|
||||
# MightyMoose |
||||
*.mm.* |
||||
AutoTest.Net/ |
||||
|
||||
# Web workbench (sass) |
||||
.sass-cache/ |
||||
|
||||
# Installshield output folder |
||||
[Ee]xpress/ |
||||
|
||||
# DocProject is a documentation generator add-in |
||||
DocProject/buildhelp/ |
||||
DocProject/Help/*.HxT |
||||
DocProject/Help/*.HxC |
||||
DocProject/Help/*.hhc |
||||
DocProject/Help/*.hhk |
||||
DocProject/Help/*.hhp |
||||
DocProject/Help/Html2 |
||||
DocProject/Help/html |
||||
|
||||
# Click-Once directory |
||||
publish/ |
||||
|
||||
# Publish Web Output |
||||
*.[Pp]ublish.xml |
||||
*.azurePubxml |
||||
# Note: Comment the next line if you want to checkin your web deploy settings, |
||||
# but database connection strings (with potential passwords) will be unencrypted |
||||
*.pubxml |
||||
*.publishproj |
||||
|
||||
# Microsoft Azure Web App publish settings. Comment the next line if you want to |
||||
# checkin your Azure Web App publish settings, but sensitive information contained |
||||
# in these scripts will be unencrypted |
||||
PublishScripts/ |
||||
|
||||
# NuGet Packages |
||||
*.nupkg |
||||
# NuGet Symbol Packages |
||||
*.snupkg |
||||
# The packages folder can be ignored because of Package Restore |
||||
**/[Pp]ackages/* |
||||
# except build/, which is used as an MSBuild target. |
||||
!**/[Pp]ackages/build/ |
||||
# Uncomment if necessary however generally it will be regenerated when needed |
||||
#!**/[Pp]ackages/repositories.config |
||||
# NuGet v3's project.json files produces more ignorable files |
||||
*.nuget.props |
||||
*.nuget.targets |
||||
|
||||
# Microsoft Azure Build Output |
||||
csx/ |
||||
*.build.csdef |
||||
|
||||
# Microsoft Azure Emulator |
||||
ecf/ |
||||
rcf/ |
||||
|
||||
# Windows Store app package directories and files |
||||
AppPackages/ |
||||
BundleArtifacts/ |
||||
Package.StoreAssociation.xml |
||||
_pkginfo.txt |
||||
*.appx |
||||
*.appxbundle |
||||
*.appxupload |
||||
|
||||
# Visual Studio cache files |
||||
# files ending in .cache can be ignored |
||||
*.[Cc]ache |
||||
# but keep track of directories ending in .cache |
||||
!?*.[Cc]ache/ |
||||
|
||||
# Others |
||||
ClientBin/ |
||||
~$* |
||||
*~ |
||||
*.dbmdl |
||||
*.dbproj.schemaview |
||||
*.jfm |
||||
*.pfx |
||||
*.publishsettings |
||||
orleans.codegen.cs |
||||
|
||||
# Including strong name files can present a security risk |
||||
# (https://github.com/github/gitignore/pull/2483#issue-259490424) |
||||
#*.snk |
||||
|
||||
# Since there are multiple workflows, uncomment next line to ignore bower_components |
||||
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) |
||||
#bower_components/ |
||||
|
||||
# RIA/Silverlight projects |
||||
Generated_Code/ |
||||
|
||||
# Backup & report files from converting an old project file |
||||
# to a newer Visual Studio version. Backup files are not needed, |
||||
# because we have git ;-) |
||||
_UpgradeReport_Files/ |
||||
Backup*/ |
||||
UpgradeLog*.XML |
||||
UpgradeLog*.htm |
||||
ServiceFabricBackup/ |
||||
*.rptproj.bak |
||||
|
||||
# SQL Server files |
||||
*.mdf |
||||
*.ldf |
||||
*.ndf |
||||
|
||||
# Business Intelligence projects |
||||
*.rdl.data |
||||
*.bim.layout |
||||
*.bim_*.settings |
||||
*.rptproj.rsuser |
||||
*- [Bb]ackup.rdl |
||||
*- [Bb]ackup ([0-9]).rdl |
||||
*- [Bb]ackup ([0-9][0-9]).rdl |
||||
|
||||
# Microsoft Fakes |
||||
FakesAssemblies/ |
||||
|
||||
# GhostDoc plugin setting file |
||||
*.GhostDoc.xml |
||||
|
||||
# Node.js Tools for Visual Studio |
||||
.ntvs_analysis.dat |
||||
node_modules/ |
||||
|
||||
# Visual Studio 6 build log |
||||
*.plg |
||||
|
||||
# Visual Studio 6 workspace options file |
||||
*.opt |
||||
|
||||
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) |
||||
*.vbw |
||||
|
||||
# Visual Studio 6 auto-generated project file (contains which files were open etc.) |
||||
*.vbp |
||||
|
||||
# Visual Studio 6 workspace and project file (working project files containing files to include in project) |
||||
*.dsw |
||||
*.dsp |
||||
|
||||
# Visual Studio 6 technical files |
||||
*.ncb |
||||
*.aps |
||||
|
||||
# Visual Studio LightSwitch build output |
||||
**/*.HTMLClient/GeneratedArtifacts |
||||
**/*.DesktopClient/GeneratedArtifacts |
||||
**/*.DesktopClient/ModelManifest.xml |
||||
**/*.Server/GeneratedArtifacts |
||||
**/*.Server/ModelManifest.xml |
||||
_Pvt_Extensions |
||||
|
||||
# Paket dependency manager |
||||
.paket/paket.exe |
||||
paket-files/ |
||||
|
||||
# FAKE - F# Make |
||||
.fake/ |
||||
|
||||
# CodeRush personal settings |
||||
.cr/personal |
||||
|
||||
# Python Tools for Visual Studio (PTVS) |
||||
__pycache__/ |
||||
*.pyc |
||||
|
||||
# Cake - Uncomment if you are using it |
||||
# tools/** |
||||
# !tools/packages.config |
||||
|
||||
# Tabs Studio |
||||
*.tss |
||||
|
||||
# Telerik's JustMock configuration file |
||||
*.jmconfig |
||||
|
||||
# BizTalk build output |
||||
*.btp.cs |
||||
*.btm.cs |
||||
*.odx.cs |
||||
*.xsd.cs |
||||
|
||||
# OpenCover UI analysis results |
||||
OpenCover/ |
||||
|
||||
# Azure Stream Analytics local run output |
||||
ASALocalRun/ |
||||
|
||||
# MSBuild Binary and Structured Log |
||||
*.binlog |
||||
|
||||
# NVidia Nsight GPU debugger configuration file |
||||
*.nvuser |
||||
|
||||
# MFractors (Xamarin productivity tool) working folder |
||||
.mfractor/ |
||||
|
||||
# Local History for Visual Studio |
||||
.localhistory/ |
||||
|
||||
# Visual Studio History (VSHistory) files |
||||
.vshistory/ |
||||
|
||||
# BeatPulse healthcheck temp database |
||||
healthchecksdb |
||||
|
||||
# Backup folder for Package Reference Convert tool in Visual Studio 2017 |
||||
MigrationBackup/ |
||||
|
||||
# Ionide (cross platform F# VS Code tools) working folder |
||||
.ionide/ |
||||
|
||||
# Fody - auto-generated XML schema |
||||
FodyWeavers.xsd |
||||
|
||||
# VS Code files for those working on multiple tools |
||||
.vscode/* |
||||
!.vscode/settings.json |
||||
!.vscode/tasks.json |
||||
!.vscode/launch.json |
||||
!.vscode/extensions.json |
||||
*.code-workspace |
||||
|
||||
# Local History for Visual Studio Code |
||||
.history/ |
||||
|
||||
# Windows Installer files from build outputs |
||||
*.cab |
||||
*.msi |
||||
*.msix |
||||
*.msm |
||||
*.msp |
||||
|
||||
# JetBrains Rider |
||||
*.sln.iml |
||||
|
||||
/src/4.apps/ATS.NonCustodial.Admin.Api/xml/ATS.NonCustodial.Domain.xml |
||||
/src/4.apps/ATS.NonCustodial.Admin.Api/xml/ATS.NonCustodial.Application.Contracts.xml |
||||
/src/4.apps/ATS.NonCustodial.Admin.Api/xml/ATS.NonCustodial.Application.xml |
||||
@ -0,0 +1,122 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00 |
||||
# Visual Studio Version 17 |
||||
VisualStudioVersion = 17.2.32519.379 |
||||
MinimumVisualStudioVersion = 10.0.40219.1 |
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{8252AA69-1D38-4FAD-A99B-20842E981D9C}" |
||||
EndProject |
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "1.datas", "1.datas", "{EBB1314E-1145-4C70-9C66-31817E859A89}" |
||||
EndProject |
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "2.services", "2.services", "{98B21E1E-5752-49CA-AC00-65F5F8B88035}" |
||||
EndProject |
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "3.contracts", "3.contracts", "{EA879066-504F-488B-A3BA-8A7A082DBF95}" |
||||
EndProject |
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "4.apps", "4.apps", "{0DCD830F-32BB-4982-988D-71782B5E2A77}" |
||||
EndProject |
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ATS.NonCustodial.Domain", "src\1.datas\ATS.NonCustodial.Domain\ATS.NonCustodial.Domain.csproj", "{0EDB7E90-7EC2-48A9-BB97-A34CE91B1F57}" |
||||
EndProject |
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ATS.NonCustodial.EntityFrameworkCore", "src\1.datas\ATS.NonCustodial.EntityFrameworkCore\ATS.NonCustodial.EntityFrameworkCore.csproj", "{324DA31D-D8B9-4832-8161-FA2BE4BC7D7E}" |
||||
EndProject |
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ATS.NonCustodial.DbMigrations", "src\1.datas\ATS.NonCustodial.DbMigrations\ATS.NonCustodial.DbMigrations.csproj", "{F8CBD92C-1069-45C7-8A5D-D57BB88322C9}" |
||||
EndProject |
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ATS.NonCustodial.Application", "src\2.services\ATS.NonCustodial.Application\ATS.NonCustodial.Application.csproj", "{E0E07459-ABD3-4B41-A5A6-2B02CD4445F4}" |
||||
EndProject |
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ATS.NonCustodial.Application.Contracts", "src\3.contracts\ATS.NonCustodial.Application.Contracts\ATS.NonCustodial.Application.Contracts.csproj", "{936580A7-89E9-4977-B83F-AD56A85D8A22}" |
||||
EndProject |
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ATS.NonCustodial.Admin.Api", "src\4.apps\ATS.NonCustodial.Admin.Api\ATS.NonCustodial.Admin.Api.csproj", "{FDE4DDFE-5DA2-48A2-B288-26E16F72C925}" |
||||
EndProject |
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "5.shared", "5.shared", "{2D332A8F-F2CE-4E8A-AD34-45483EEFE5E7}" |
||||
EndProject |
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ATS.NonCustodial.Shared", "src\5.shared\ATS.NonCustodial.Shared\ATS.NonCustodial.Shared.csproj", "{D8328270-4206-4FD1-87EC-C69AF2661B33}" |
||||
EndProject |
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ATS.NonCustodial.AdminUi", "src\5.shared\ATS.NonCustodial.AdminUi\ATS.NonCustodial.AdminUi.csproj", "{C53AF47C-2195-40A8-AF9A-E72EA131C925}" |
||||
EndProject |
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ATS.NonCustodial.Admin.QuartzJobs", "src\5.shared\ATS.NonCustodial.Admin.Jobs\ATS.NonCustodial.Admin.QuartzJobs.csproj", "{1AA91E44-E3B9-4AA7-B615-F3E72BFD5474}" |
||||
EndProject |
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ATS.NonCustodial.AuditLogging", "src\5.shared\ATS.NonCustodial.AuditLogging\ATS.NonCustodial.AuditLogging.csproj", "{9939E08E-EABA-4214-A6A7-0C20BF76E53A}" |
||||
EndProject |
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ATS.NonCustodial.Domain.Shared", "src\5.shared\ATS.NonCustodial.Domain.Shared\ATS.NonCustodial.Domain.Shared.csproj", "{648D30BF-D213-415D-8859-1848B31816EE}" |
||||
EndProject |
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ATS.NonCustodial.DynamicApi", "src\5.shared\ATS.NonCustodial.DynamicApi\ATS.NonCustodial.DynamicApi.csproj", "{E356E7DA-B085-4548-BF13-84E2501DA7B6}" |
||||
EndProject |
||||
Global |
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
||||
Debug|Any CPU = Debug|Any CPU |
||||
Release|Any CPU = Release|Any CPU |
||||
EndGlobalSection |
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution |
||||
{0EDB7E90-7EC2-48A9-BB97-A34CE91B1F57}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
||||
{0EDB7E90-7EC2-48A9-BB97-A34CE91B1F57}.Debug|Any CPU.Build.0 = Debug|Any CPU |
||||
{0EDB7E90-7EC2-48A9-BB97-A34CE91B1F57}.Release|Any CPU.ActiveCfg = Release|Any CPU |
||||
{0EDB7E90-7EC2-48A9-BB97-A34CE91B1F57}.Release|Any CPU.Build.0 = Release|Any CPU |
||||
{324DA31D-D8B9-4832-8161-FA2BE4BC7D7E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
||||
{324DA31D-D8B9-4832-8161-FA2BE4BC7D7E}.Debug|Any CPU.Build.0 = Debug|Any CPU |
||||
{324DA31D-D8B9-4832-8161-FA2BE4BC7D7E}.Release|Any CPU.ActiveCfg = Release|Any CPU |
||||
{324DA31D-D8B9-4832-8161-FA2BE4BC7D7E}.Release|Any CPU.Build.0 = Release|Any CPU |
||||
{F8CBD92C-1069-45C7-8A5D-D57BB88322C9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
||||
{F8CBD92C-1069-45C7-8A5D-D57BB88322C9}.Debug|Any CPU.Build.0 = Debug|Any CPU |
||||
{F8CBD92C-1069-45C7-8A5D-D57BB88322C9}.Release|Any CPU.ActiveCfg = Release|Any CPU |
||||
{F8CBD92C-1069-45C7-8A5D-D57BB88322C9}.Release|Any CPU.Build.0 = Release|Any CPU |
||||
{E0E07459-ABD3-4B41-A5A6-2B02CD4445F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
||||
{E0E07459-ABD3-4B41-A5A6-2B02CD4445F4}.Debug|Any CPU.Build.0 = Debug|Any CPU |
||||
{E0E07459-ABD3-4B41-A5A6-2B02CD4445F4}.Release|Any CPU.ActiveCfg = Release|Any CPU |
||||
{E0E07459-ABD3-4B41-A5A6-2B02CD4445F4}.Release|Any CPU.Build.0 = Release|Any CPU |
||||
{936580A7-89E9-4977-B83F-AD56A85D8A22}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
||||
{936580A7-89E9-4977-B83F-AD56A85D8A22}.Debug|Any CPU.Build.0 = Debug|Any CPU |
||||
{936580A7-89E9-4977-B83F-AD56A85D8A22}.Release|Any CPU.ActiveCfg = Release|Any CPU |
||||
{936580A7-89E9-4977-B83F-AD56A85D8A22}.Release|Any CPU.Build.0 = Release|Any CPU |
||||
{FDE4DDFE-5DA2-48A2-B288-26E16F72C925}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
||||
{FDE4DDFE-5DA2-48A2-B288-26E16F72C925}.Debug|Any CPU.Build.0 = Debug|Any CPU |
||||
{FDE4DDFE-5DA2-48A2-B288-26E16F72C925}.Release|Any CPU.ActiveCfg = Release|Any CPU |
||||
{FDE4DDFE-5DA2-48A2-B288-26E16F72C925}.Release|Any CPU.Build.0 = Release|Any CPU |
||||
{D8328270-4206-4FD1-87EC-C69AF2661B33}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
||||
{D8328270-4206-4FD1-87EC-C69AF2661B33}.Debug|Any CPU.Build.0 = Debug|Any CPU |
||||
{D8328270-4206-4FD1-87EC-C69AF2661B33}.Release|Any CPU.ActiveCfg = Release|Any CPU |
||||
{D8328270-4206-4FD1-87EC-C69AF2661B33}.Release|Any CPU.Build.0 = Release|Any CPU |
||||
{C53AF47C-2195-40A8-AF9A-E72EA131C925}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
||||
{C53AF47C-2195-40A8-AF9A-E72EA131C925}.Debug|Any CPU.Build.0 = Debug|Any CPU |
||||
{C53AF47C-2195-40A8-AF9A-E72EA131C925}.Release|Any CPU.ActiveCfg = Release|Any CPU |
||||
{C53AF47C-2195-40A8-AF9A-E72EA131C925}.Release|Any CPU.Build.0 = Release|Any CPU |
||||
{1AA91E44-E3B9-4AA7-B615-F3E72BFD5474}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
||||
{1AA91E44-E3B9-4AA7-B615-F3E72BFD5474}.Debug|Any CPU.Build.0 = Debug|Any CPU |
||||
{1AA91E44-E3B9-4AA7-B615-F3E72BFD5474}.Release|Any CPU.ActiveCfg = Release|Any CPU |
||||
{1AA91E44-E3B9-4AA7-B615-F3E72BFD5474}.Release|Any CPU.Build.0 = Release|Any CPU |
||||
{9939E08E-EABA-4214-A6A7-0C20BF76E53A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
||||
{9939E08E-EABA-4214-A6A7-0C20BF76E53A}.Debug|Any CPU.Build.0 = Debug|Any CPU |
||||
{9939E08E-EABA-4214-A6A7-0C20BF76E53A}.Release|Any CPU.ActiveCfg = Release|Any CPU |
||||
{9939E08E-EABA-4214-A6A7-0C20BF76E53A}.Release|Any CPU.Build.0 = Release|Any CPU |
||||
{648D30BF-D213-415D-8859-1848B31816EE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
||||
{648D30BF-D213-415D-8859-1848B31816EE}.Debug|Any CPU.Build.0 = Debug|Any CPU |
||||
{648D30BF-D213-415D-8859-1848B31816EE}.Release|Any CPU.ActiveCfg = Release|Any CPU |
||||
{648D30BF-D213-415D-8859-1848B31816EE}.Release|Any CPU.Build.0 = Release|Any CPU |
||||
{E356E7DA-B085-4548-BF13-84E2501DA7B6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
||||
{E356E7DA-B085-4548-BF13-84E2501DA7B6}.Debug|Any CPU.Build.0 = Debug|Any CPU |
||||
{E356E7DA-B085-4548-BF13-84E2501DA7B6}.Release|Any CPU.ActiveCfg = Release|Any CPU |
||||
{E356E7DA-B085-4548-BF13-84E2501DA7B6}.Release|Any CPU.Build.0 = Release|Any CPU |
||||
EndGlobalSection |
||||
GlobalSection(SolutionProperties) = preSolution |
||||
HideSolutionNode = FALSE |
||||
EndGlobalSection |
||||
GlobalSection(NestedProjects) = preSolution |
||||
{EBB1314E-1145-4C70-9C66-31817E859A89} = {8252AA69-1D38-4FAD-A99B-20842E981D9C} |
||||
{98B21E1E-5752-49CA-AC00-65F5F8B88035} = {8252AA69-1D38-4FAD-A99B-20842E981D9C} |
||||
{EA879066-504F-488B-A3BA-8A7A082DBF95} = {8252AA69-1D38-4FAD-A99B-20842E981D9C} |
||||
{0DCD830F-32BB-4982-988D-71782B5E2A77} = {8252AA69-1D38-4FAD-A99B-20842E981D9C} |
||||
{0EDB7E90-7EC2-48A9-BB97-A34CE91B1F57} = {EBB1314E-1145-4C70-9C66-31817E859A89} |
||||
{324DA31D-D8B9-4832-8161-FA2BE4BC7D7E} = {EBB1314E-1145-4C70-9C66-31817E859A89} |
||||
{F8CBD92C-1069-45C7-8A5D-D57BB88322C9} = {EBB1314E-1145-4C70-9C66-31817E859A89} |
||||
{E0E07459-ABD3-4B41-A5A6-2B02CD4445F4} = {98B21E1E-5752-49CA-AC00-65F5F8B88035} |
||||
{936580A7-89E9-4977-B83F-AD56A85D8A22} = {EA879066-504F-488B-A3BA-8A7A082DBF95} |
||||
{FDE4DDFE-5DA2-48A2-B288-26E16F72C925} = {0DCD830F-32BB-4982-988D-71782B5E2A77} |
||||
{2D332A8F-F2CE-4E8A-AD34-45483EEFE5E7} = {8252AA69-1D38-4FAD-A99B-20842E981D9C} |
||||
{D8328270-4206-4FD1-87EC-C69AF2661B33} = {2D332A8F-F2CE-4E8A-AD34-45483EEFE5E7} |
||||
{C53AF47C-2195-40A8-AF9A-E72EA131C925} = {2D332A8F-F2CE-4E8A-AD34-45483EEFE5E7} |
||||
{1AA91E44-E3B9-4AA7-B615-F3E72BFD5474} = {2D332A8F-F2CE-4E8A-AD34-45483EEFE5E7} |
||||
{9939E08E-EABA-4214-A6A7-0C20BF76E53A} = {2D332A8F-F2CE-4E8A-AD34-45483EEFE5E7} |
||||
{648D30BF-D213-415D-8859-1848B31816EE} = {2D332A8F-F2CE-4E8A-AD34-45483EEFE5E7} |
||||
{E356E7DA-B085-4548-BF13-84E2501DA7B6} = {2D332A8F-F2CE-4E8A-AD34-45483EEFE5E7} |
||||
EndGlobalSection |
||||
GlobalSection(ExtensibilityGlobals) = postSolution |
||||
SolutionGuid = {475C8EC3-C45E-4CB6-ADF0-A111A8932E9A} |
||||
EndGlobalSection |
||||
EndGlobal |
||||
@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk"> |
||||
|
||||
<PropertyGroup> |
||||
<TargetFramework>net9.0</TargetFramework> |
||||
<ImplicitUsings>enable</ImplicitUsings> |
||||
<Nullable>enable</Nullable> |
||||
</PropertyGroup> |
||||
|
||||
<ItemGroup> |
||||
<ProjectReference Include="..\ATS.NonCustodial.EntityFrameworkCore\ATS.NonCustodial.EntityFrameworkCore.csproj" /> |
||||
</ItemGroup> |
||||
|
||||
</Project> |
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,59 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class addsupervisorField : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "RealTimeLocation", |
||||
table: "app_supervised_person_real_time_location", |
||||
type: "varchar(1024)", |
||||
maxLength: 1024, |
||||
nullable: true, |
||||
comment: "实时位置坐标\r\n 集合Json", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(1024)", |
||||
oldMaxLength: 1024, |
||||
oldNullable: true, |
||||
oldComment: "实时位置坐标") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AddColumn<string>( |
||||
name: "SupervisorName", |
||||
table: "app_case_supervisor", |
||||
type: "varchar(20)", |
||||
maxLength: 20, |
||||
nullable: false, |
||||
defaultValue: "", |
||||
comment: "案件-监管人员管理员名字") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropColumn( |
||||
name: "SupervisorName", |
||||
table: "app_case_supervisor"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "RealTimeLocation", |
||||
table: "app_supervised_person_real_time_location", |
||||
type: "varchar(1024)", |
||||
maxLength: 1024, |
||||
nullable: true, |
||||
comment: "实时位置坐标", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(1024)", |
||||
oldMaxLength: 1024, |
||||
oldNullable: true, |
||||
oldComment: "实时位置坐标\r\n 集合Json") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,65 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustTableStructure : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.RenameColumn( |
||||
name: "Name", |
||||
table: "app_announcement", |
||||
newName: "Title"); |
||||
|
||||
migrationBuilder.AddColumn<string>( |
||||
name: "Content", |
||||
table: "app_early_warning", |
||||
type: "varchar(2048)", |
||||
maxLength: 2048, |
||||
nullable: false, |
||||
defaultValue: "", |
||||
comment: "预警提醒内容") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AddColumn<long>( |
||||
name: "CommonFenceId", |
||||
table: "app_case_supervised_person", |
||||
type: "bigint", |
||||
nullable: false, |
||||
defaultValue: 0L, |
||||
comment: "电子围栏Id"); |
||||
|
||||
migrationBuilder.AddColumn<string>( |
||||
name: "Title", |
||||
table: "app_announcement_view_statistics", |
||||
type: "varchar(30)", |
||||
maxLength: 30, |
||||
nullable: false, |
||||
defaultValue: "", |
||||
comment: "公告标题") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropColumn( |
||||
name: "Content", |
||||
table: "app_early_warning"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "CommonFenceId", |
||||
table: "app_case_supervised_person"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "Title", |
||||
table: "app_announcement_view_statistics"); |
||||
|
||||
migrationBuilder.RenameColumn( |
||||
name: "Title", |
||||
table: "app_announcement", |
||||
newName: "Name"); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,52 @@
|
||||
using Microsoft.EntityFrameworkCore.Metadata; |
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustTableStructure01 : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropTable( |
||||
name: "app_case_supervised_person"); |
||||
|
||||
migrationBuilder.RenameColumn( |
||||
name: "ElectricFence", |
||||
table: "app_supervised_person", |
||||
newName: "ElectricFenceId"); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.RenameColumn( |
||||
name: "ElectricFenceId", |
||||
table: "app_supervised_person", |
||||
newName: "ElectricFence"); |
||||
|
||||
migrationBuilder.CreateTable( |
||||
name: "app_case_supervised_person", |
||||
columns: table => new |
||||
{ |
||||
Id = table.Column<long>(type: "bigint", nullable: false, comment: "") |
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), |
||||
CaseId = table.Column<long>(type: "bigint", nullable: false, comment: "案件Id"), |
||||
CommonFenceId = table.Column<long>(type: "bigint", nullable: false, comment: "电子围栏Id"), |
||||
CreatedTime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: ""), |
||||
CreatedUserId = table.Column<long>(type: "bigint", nullable: true, comment: ""), |
||||
CreatedUserName = table.Column<string>(type: "varchar(20)", maxLength: 20, nullable: true, comment: "") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "), |
||||
SupervisedPersonId = table.Column<long>(type: "bigint", nullable: false, comment: "被监管人Id"), |
||||
SupervisedPersonName = table.Column<string>(type: "varchar(20)", maxLength: 20, nullable: true, comment: "被监管人员") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
}, |
||||
constraints: table => |
||||
{ |
||||
table.PrimaryKey("PK_app_case_supervised_person", x => x.Id); |
||||
}, |
||||
comment: "案件-被监管人管理表") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,41 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class renametablename : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropPrimaryKey( |
||||
name: "PK_app_supervised_person", |
||||
table: "app_supervised_person"); |
||||
|
||||
migrationBuilder.RenameTable( |
||||
name: "app_supervised_person", |
||||
newName: "app_case_supervised_person"); |
||||
|
||||
migrationBuilder.AddPrimaryKey( |
||||
name: "PK_app_case_supervised_person", |
||||
table: "app_case_supervised_person", |
||||
column: "Id"); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropPrimaryKey( |
||||
name: "PK_app_case_supervised_person", |
||||
table: "app_case_supervised_person"); |
||||
|
||||
migrationBuilder.RenameTable( |
||||
name: "app_case_supervised_person", |
||||
newName: "app_supervised_person"); |
||||
|
||||
migrationBuilder.AddPrimaryKey( |
||||
name: "PK_app_supervised_person", |
||||
table: "app_supervised_person", |
||||
column: "Id"); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,53 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class addAppCaseSupervisedPerson : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropColumn( |
||||
name: "Name", |
||||
table: "app_case_supervised_person"); |
||||
|
||||
migrationBuilder.AddColumn<long>( |
||||
name: "SupervisedPersonId", |
||||
table: "app_case_supervised_person", |
||||
type: "bigint", |
||||
nullable: false, |
||||
defaultValue: 0L, |
||||
comment: "被监管人员Id(来着用户表)"); |
||||
|
||||
migrationBuilder.AddColumn<string>( |
||||
name: "SupervisedPersonName", |
||||
table: "app_case_supervised_person", |
||||
type: "longtext", |
||||
nullable: false, |
||||
comment: "被监管人-名字 (来着用户表) \r\n 姓名可模糊搜索系统用户管理中用户类型为“被监管人”的数据,展示“姓名_手机号”,选择后可作为填写数据的默认值,用户还是可以在此基础上进行更改。") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropColumn( |
||||
name: "SupervisedPersonId", |
||||
table: "app_case_supervised_person"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "SupervisedPersonName", |
||||
table: "app_case_supervised_person"); |
||||
|
||||
migrationBuilder.AddColumn<string>( |
||||
name: "Name", |
||||
table: "app_case_supervised_person", |
||||
type: "varchar(20)", |
||||
maxLength: 20, |
||||
nullable: false, |
||||
defaultValue: "", |
||||
comment: "被监管人-名字\r\n 姓名可模糊搜索系统用户管理中用户类型为“被监管人”的数据,展示“姓名_手机号”,选择后可作为填写数据的默认值,用户还是可以在此基础上进行更改。") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,52 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustsprealtimetable : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropColumn( |
||||
name: "RealTimeLocation", |
||||
table: "app_supervised_person_real_time_location"); |
||||
|
||||
migrationBuilder.AddColumn<decimal>( |
||||
name: "Latitude", |
||||
table: "app_supervised_person_real_time_location", |
||||
type: "decimal(65,30)", |
||||
nullable: false, |
||||
defaultValue: 0m, |
||||
comment: "维度"); |
||||
|
||||
migrationBuilder.AddColumn<decimal>( |
||||
name: "Longitude", |
||||
table: "app_supervised_person_real_time_location", |
||||
type: "decimal(65,30)", |
||||
nullable: false, |
||||
defaultValue: 0m, |
||||
comment: "经度"); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropColumn( |
||||
name: "Latitude", |
||||
table: "app_supervised_person_real_time_location"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "Longitude", |
||||
table: "app_supervised_person_real_time_location"); |
||||
|
||||
migrationBuilder.AddColumn<string>( |
||||
name: "RealTimeLocation", |
||||
table: "app_supervised_person_real_time_location", |
||||
type: "varchar(1024)", |
||||
maxLength: 1024, |
||||
nullable: true, |
||||
comment: "实时位置坐标\r\n 集合Json") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,37 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustbusinesstable : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<long>( |
||||
name: "AuditorId", |
||||
table: "app_business_application", |
||||
type: "bigint", |
||||
nullable: true, |
||||
comment: "审核人员Id", |
||||
oldClrType: typeof(long), |
||||
oldType: "bigint", |
||||
oldComment: "审核人员Id"); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<long>( |
||||
name: "AuditorId", |
||||
table: "app_business_application", |
||||
type: "bigint", |
||||
nullable: false, |
||||
defaultValue: 0L, |
||||
comment: "审核人员Id", |
||||
oldClrType: typeof(long), |
||||
oldType: "bigint", |
||||
oldNullable: true, |
||||
oldComment: "审核人员Id"); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,75 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustlogtablefieldlength : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "BrowserInfo", |
||||
table: "app_operation_log", |
||||
type: "varchar(1024)", |
||||
maxLength: 1024, |
||||
nullable: true, |
||||
comment: "", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(128)", |
||||
oldMaxLength: 128, |
||||
oldNullable: true, |
||||
oldComment: "") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "BrowserInfo", |
||||
table: "app_login_log", |
||||
type: "varchar(1024)", |
||||
maxLength: 1024, |
||||
nullable: true, |
||||
comment: "", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(128)", |
||||
oldMaxLength: 128, |
||||
oldNullable: true, |
||||
oldComment: "") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "BrowserInfo", |
||||
table: "app_operation_log", |
||||
type: "varchar(128)", |
||||
maxLength: 128, |
||||
nullable: true, |
||||
comment: "", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(1024)", |
||||
oldMaxLength: 1024, |
||||
oldNullable: true, |
||||
oldComment: "") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "BrowserInfo", |
||||
table: "app_login_log", |
||||
type: "varchar(128)", |
||||
maxLength: 128, |
||||
nullable: true, |
||||
comment: "", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(1024)", |
||||
oldMaxLength: 1024, |
||||
oldNullable: true, |
||||
oldComment: "") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,43 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustfilepathlength : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "FilePath", |
||||
table: "app_file_descriptor", |
||||
type: "varchar(1024)", |
||||
maxLength: 1024, |
||||
nullable: false, |
||||
comment: "文件存储的路径", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(128)", |
||||
oldMaxLength: 128, |
||||
oldComment: "文件存储的路径") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "FilePath", |
||||
table: "app_file_descriptor", |
||||
type: "varchar(128)", |
||||
maxLength: 128, |
||||
nullable: false, |
||||
comment: "文件存储的路径", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(1024)", |
||||
oldMaxLength: 1024, |
||||
oldComment: "文件存储的路径") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,76 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustbusinessfield : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropColumn( |
||||
name: "SupervisorId", |
||||
table: "app_business_application"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "SupervisorName", |
||||
table: "app_business_application"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "SupervisorName", |
||||
table: "app_case_supervisor", |
||||
type: "varchar(20)", |
||||
maxLength: 20, |
||||
nullable: true, |
||||
comment: "案件-监管人员管理员名字", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(20)", |
||||
oldMaxLength: 20, |
||||
oldComment: "案件-监管人员管理员名字") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.UpdateData( |
||||
table: "app_case_supervisor", |
||||
keyColumn: "SupervisorName", |
||||
keyValue: null, |
||||
column: "SupervisorName", |
||||
value: ""); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "SupervisorName", |
||||
table: "app_case_supervisor", |
||||
type: "varchar(20)", |
||||
maxLength: 20, |
||||
nullable: false, |
||||
comment: "案件-监管人员管理员名字", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(20)", |
||||
oldMaxLength: 20, |
||||
oldNullable: true, |
||||
oldComment: "案件-监管人员管理员名字") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AddColumn<long>( |
||||
name: "SupervisorId", |
||||
table: "app_business_application", |
||||
type: "bigint", |
||||
nullable: false, |
||||
defaultValue: 0L, |
||||
comment: "监管人员Id"); |
||||
|
||||
migrationBuilder.AddColumn<string>( |
||||
name: "SupervisorName", |
||||
table: "app_business_application", |
||||
type: "varchar(20)", |
||||
maxLength: 20, |
||||
nullable: true, |
||||
comment: "监管人员名字") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,62 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustCommonFenceField : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AddColumn<long>( |
||||
name: "CaseId", |
||||
table: "app_common_fence", |
||||
type: "bigint", |
||||
nullable: true, |
||||
comment: "案件Id"); |
||||
|
||||
migrationBuilder.AddColumn<int>( |
||||
name: "CommonFenceType", |
||||
table: "app_common_fence", |
||||
type: "int", |
||||
nullable: false, |
||||
defaultValue: 0, |
||||
comment: "围栏类型枚举(0:常用围栏 1:特定被监管人)"); |
||||
|
||||
migrationBuilder.AddColumn<long>( |
||||
name: "SupervisedPersonId", |
||||
table: "app_common_fence", |
||||
type: "bigint", |
||||
nullable: true, |
||||
comment: "被监管人Id"); |
||||
|
||||
migrationBuilder.AddColumn<string>( |
||||
name: "SupervisedPersonName", |
||||
table: "app_common_fence", |
||||
type: "varchar(20)", |
||||
maxLength: 20, |
||||
nullable: true, |
||||
comment: "被监管人员") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropColumn( |
||||
name: "CaseId", |
||||
table: "app_common_fence"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "CommonFenceType", |
||||
table: "app_common_fence"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "SupervisedPersonId", |
||||
table: "app_common_fence"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "SupervisedPersonName", |
||||
table: "app_common_fence"); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,43 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustMimeTypelength : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "MimeType", |
||||
table: "app_file_descriptor", |
||||
type: "varchar(64)", |
||||
maxLength: 64, |
||||
nullable: false, |
||||
comment: "文件Mime类型", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(30)", |
||||
oldMaxLength: 30, |
||||
oldComment: "文件Mime类型") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "MimeType", |
||||
table: "app_file_descriptor", |
||||
type: "varchar(30)", |
||||
maxLength: 30, |
||||
nullable: false, |
||||
comment: "文件Mime类型", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(64)", |
||||
oldMaxLength: 64, |
||||
oldComment: "文件Mime类型") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,43 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustMimeTypelengthagain : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "MimeType", |
||||
table: "app_file_descriptor", |
||||
type: "varchar(128)", |
||||
maxLength: 128, |
||||
nullable: false, |
||||
comment: "文件Mime类型", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(64)", |
||||
oldMaxLength: 64, |
||||
oldComment: "文件Mime类型") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "MimeType", |
||||
table: "app_file_descriptor", |
||||
type: "varchar(64)", |
||||
maxLength: 64, |
||||
nullable: false, |
||||
comment: "文件Mime类型", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(128)", |
||||
oldMaxLength: 128, |
||||
oldComment: "文件Mime类型") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,347 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class addtableindex : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_visitor_record_CaseId", |
||||
table: "app_visitor_record", |
||||
column: "CaseId"); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_violation_statistics_CaseId_SupervisedPersonId", |
||||
table: "app_violation_statistics", |
||||
columns: new[] { "CaseId", "SupervisedPersonId" }); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_view_ParentId_Label", |
||||
table: "app_view", |
||||
columns: new[] { "ParentId", "Label" }, |
||||
unique: true); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_user_role_UserId_RoleId", |
||||
table: "app_user_role", |
||||
columns: new[] { "UserId", "RoleId" }, |
||||
unique: true); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_user_UserName", |
||||
table: "app_user", |
||||
column: "UserName", |
||||
unique: true); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_supervised_person_real_time_location_DeviceId_Supervised~", |
||||
table: "app_supervised_person_real_time_location", |
||||
columns: new[] { "DeviceId", "SupervisedPersonId", "CaseId" }); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_signs_information_DeviceId_SupervisedPersonId_CaseId", |
||||
table: "app_signs_information", |
||||
columns: new[] { "DeviceId", "SupervisedPersonId", "CaseId" }); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_shared_location_management_DeviceId_SupervisedPersonId", |
||||
table: "app_shared_location_management", |
||||
columns: new[] { "DeviceId", "SupervisedPersonId" }); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_session_message_CaseId", |
||||
table: "app_session_message", |
||||
column: "CaseId"); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_session_information_CaseId", |
||||
table: "app_session_information", |
||||
column: "CaseId"); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_role_permission_RoleId_PermissionId", |
||||
table: "app_role_permission", |
||||
columns: new[] { "RoleId", "PermissionId" }); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_role_Name_Code", |
||||
table: "app_role", |
||||
columns: new[] { "Name", "Code" }); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_punch_record_statistics_CaseId_SupervisedPersonId", |
||||
table: "app_punch_record_statistics", |
||||
columns: new[] { "CaseId", "SupervisedPersonId" }); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_permission_api_PermissionId_ApiId", |
||||
table: "app_permission_api", |
||||
columns: new[] { "PermissionId", "ApiId" }); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_permission_ParentId_Label", |
||||
table: "app_permission", |
||||
columns: new[] { "ParentId", "Label" }, |
||||
unique: true); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_operation_log_CreatedUserId_CreatedUserName", |
||||
table: "app_operation_log", |
||||
columns: new[] { "CreatedUserId", "CreatedUserName" }); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_login_log_CreatedUserId_CreatedUserName", |
||||
table: "app_login_log", |
||||
columns: new[] { "CreatedUserId", "CreatedUserName" }); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_leave_message_CaseId", |
||||
table: "app_leave_message", |
||||
column: "CaseId"); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_file_descriptor_Name_DirectoryId", |
||||
table: "app_file_descriptor", |
||||
columns: new[] { "Name", "DirectoryId" }); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_file_access_records_SupervisedPersonId_FileDescriptorId", |
||||
table: "app_file_access_records", |
||||
columns: new[] { "SupervisedPersonId", "FileDescriptorId" }); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_early_warning_CaseId_SupervisedPersonId", |
||||
table: "app_early_warning", |
||||
columns: new[] { "CaseId", "SupervisedPersonId" }); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_directory_descriptor_Name_ParentId", |
||||
table: "app_directory_descriptor", |
||||
columns: new[] { "Name", "ParentId" }); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_dictionary_type_Name_Code", |
||||
table: "app_dictionary_type", |
||||
columns: new[] { "Name", "Code" }); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_dictionary_DictionaryTypeId_Name", |
||||
table: "app_dictionary", |
||||
columns: new[] { "DictionaryTypeId", "Name" }); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_device_management_Name_UniqueIdentifier_SupervisedPerson~", |
||||
table: "app_device_management", |
||||
columns: new[] { "Name", "UniqueIdentifier", "SupervisedPersonId" }); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_data_privilege_rule_SourceCode", |
||||
table: "app_data_privilege_rule", |
||||
column: "SourceCode", |
||||
unique: true); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_customer_CaseId", |
||||
table: "app_customer", |
||||
column: "CaseId"); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_common_fence_CaseId_Name_SupervisedPersonId", |
||||
table: "app_common_fence", |
||||
columns: new[] { "CaseId", "Name", "SupervisedPersonId" }); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_case_supervisor_CaseId_SupervisorId", |
||||
table: "app_case_supervisor", |
||||
columns: new[] { "CaseId", "SupervisorId" }); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_case_supervised_person_CaseId_SupervisedPersonId", |
||||
table: "app_case_supervised_person", |
||||
columns: new[] { "CaseId", "SupervisedPersonId" }); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_case_notes_CaseId", |
||||
table: "app_case_notes", |
||||
column: "CaseId"); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_case_management_Name", |
||||
table: "app_case_management", |
||||
column: "Name", |
||||
unique: true); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_business_application_CaseId_AuditorId_SupervisedPersonId", |
||||
table: "app_business_application", |
||||
columns: new[] { "CaseId", "AuditorId", "SupervisedPersonId" }); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_api_Path_ParentId", |
||||
table: "app_api", |
||||
columns: new[] { "Path", "ParentId" }, |
||||
unique: true); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_announcement_view_statistics_AnnouncementId_SupervisedPe~", |
||||
table: "app_announcement_view_statistics", |
||||
columns: new[] { "AnnouncementId", "SupervisedPersonId" }); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_announcement_Title", |
||||
table: "app_announcement", |
||||
column: "Title", |
||||
unique: true); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_visitor_record_CaseId", |
||||
table: "app_visitor_record"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_violation_statistics_CaseId_SupervisedPersonId", |
||||
table: "app_violation_statistics"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_view_ParentId_Label", |
||||
table: "app_view"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_user_role_UserId_RoleId", |
||||
table: "app_user_role"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_user_UserName", |
||||
table: "app_user"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_supervised_person_real_time_location_DeviceId_Supervised~", |
||||
table: "app_supervised_person_real_time_location"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_signs_information_DeviceId_SupervisedPersonId_CaseId", |
||||
table: "app_signs_information"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_shared_location_management_DeviceId_SupervisedPersonId", |
||||
table: "app_shared_location_management"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_session_message_CaseId", |
||||
table: "app_session_message"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_session_information_CaseId", |
||||
table: "app_session_information"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_role_permission_RoleId_PermissionId", |
||||
table: "app_role_permission"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_role_Name_Code", |
||||
table: "app_role"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_punch_record_statistics_CaseId_SupervisedPersonId", |
||||
table: "app_punch_record_statistics"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_permission_api_PermissionId_ApiId", |
||||
table: "app_permission_api"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_permission_ParentId_Label", |
||||
table: "app_permission"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_operation_log_CreatedUserId_CreatedUserName", |
||||
table: "app_operation_log"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_login_log_CreatedUserId_CreatedUserName", |
||||
table: "app_login_log"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_leave_message_CaseId", |
||||
table: "app_leave_message"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_file_descriptor_Name_DirectoryId", |
||||
table: "app_file_descriptor"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_file_access_records_SupervisedPersonId_FileDescriptorId", |
||||
table: "app_file_access_records"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_early_warning_CaseId_SupervisedPersonId", |
||||
table: "app_early_warning"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_directory_descriptor_Name_ParentId", |
||||
table: "app_directory_descriptor"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_dictionary_type_Name_Code", |
||||
table: "app_dictionary_type"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_dictionary_DictionaryTypeId_Name", |
||||
table: "app_dictionary"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_device_management_Name_UniqueIdentifier_SupervisedPerson~", |
||||
table: "app_device_management"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_data_privilege_rule_SourceCode", |
||||
table: "app_data_privilege_rule"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_customer_CaseId", |
||||
table: "app_customer"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_common_fence_CaseId_Name_SupervisedPersonId", |
||||
table: "app_common_fence"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_case_supervisor_CaseId_SupervisorId", |
||||
table: "app_case_supervisor"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_case_supervised_person_CaseId_SupervisedPersonId", |
||||
table: "app_case_supervised_person"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_case_notes_CaseId", |
||||
table: "app_case_notes"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_case_management_Name", |
||||
table: "app_case_management"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_business_application_CaseId_AuditorId_SupervisedPersonId", |
||||
table: "app_business_application"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_api_Path_ParentId", |
||||
table: "app_api"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_announcement_view_statistics_AnnouncementId_SupervisedPe~", |
||||
table: "app_announcement_view_statistics"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_announcement_Title", |
||||
table: "app_announcement"); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,50 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class addcommonfencefield : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<long>( |
||||
name: "ElectricFenceId", |
||||
table: "app_case_supervised_person", |
||||
type: "bigint", |
||||
nullable: true, |
||||
comment: "常用围栏(电子围栏)Id", |
||||
oldClrType: typeof(long), |
||||
oldType: "bigint", |
||||
oldComment: "常用围栏(电子围栏)Id"); |
||||
|
||||
migrationBuilder.AddColumn<string>( |
||||
name: "ElectricFenceName", |
||||
table: "app_case_supervised_person", |
||||
type: "varchar(30)", |
||||
maxLength: 30, |
||||
nullable: true, |
||||
comment: "常用围栏名称") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropColumn( |
||||
name: "ElectricFenceName", |
||||
table: "app_case_supervised_person"); |
||||
|
||||
migrationBuilder.AlterColumn<long>( |
||||
name: "ElectricFenceId", |
||||
table: "app_case_supervised_person", |
||||
type: "bigint", |
||||
nullable: false, |
||||
defaultValue: 0L, |
||||
comment: "常用围栏(电子围栏)Id", |
||||
oldClrType: typeof(long), |
||||
oldType: "bigint", |
||||
oldNullable: true, |
||||
oldComment: "常用围栏(电子围栏)Id"); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,52 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class addPunchRecordfield : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropColumn( |
||||
name: "CheckInLocation", |
||||
table: "app_punch_record_statistics"); |
||||
|
||||
migrationBuilder.AddColumn<decimal>( |
||||
name: "Latitude", |
||||
table: "app_punch_record_statistics", |
||||
type: "decimal(65,30)", |
||||
nullable: false, |
||||
defaultValue: 0m, |
||||
comment: "维度(打卡地点)"); |
||||
|
||||
migrationBuilder.AddColumn<decimal>( |
||||
name: "Longitude", |
||||
table: "app_punch_record_statistics", |
||||
type: "decimal(65,30)", |
||||
nullable: false, |
||||
defaultValue: 0m, |
||||
comment: "经度(打卡地点)"); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropColumn( |
||||
name: "Latitude", |
||||
table: "app_punch_record_statistics"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "Longitude", |
||||
table: "app_punch_record_statistics"); |
||||
|
||||
migrationBuilder.AddColumn<string>( |
||||
name: "CheckInLocation", |
||||
table: "app_punch_record_statistics", |
||||
type: "varchar(255)", |
||||
maxLength: 255, |
||||
nullable: true, |
||||
comment: "打卡地点(存储的是坐标位置)") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,28 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class addPunchRecordfield01 : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AddColumn<string>( |
||||
name: "CheckInLocation", |
||||
table: "app_punch_record_statistics", |
||||
type: "varchar(255)", |
||||
maxLength: 255, |
||||
nullable: true, |
||||
comment: "打卡地点") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropColumn( |
||||
name: "CheckInLocation", |
||||
table: "app_punch_record_statistics"); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,17 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class addPunchRecordfieldagain : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,75 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class addimfieldlength : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "VisitorName", |
||||
table: "app_visitor_record", |
||||
type: "varchar(30)", |
||||
maxLength: 30, |
||||
nullable: true, |
||||
comment: "被监管人用户名", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(20)", |
||||
oldMaxLength: 20, |
||||
oldNullable: true, |
||||
oldComment: "被监管人用户名") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "UserName", |
||||
table: "app_leave_message", |
||||
type: "varchar(30)", |
||||
maxLength: 30, |
||||
nullable: true, |
||||
comment: "用户名", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(20)", |
||||
oldMaxLength: 20, |
||||
oldNullable: true, |
||||
oldComment: "用户名") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "VisitorName", |
||||
table: "app_visitor_record", |
||||
type: "varchar(20)", |
||||
maxLength: 20, |
||||
nullable: true, |
||||
comment: "被监管人用户名", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(30)", |
||||
oldMaxLength: 30, |
||||
oldNullable: true, |
||||
oldComment: "被监管人用户名") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "UserName", |
||||
table: "app_leave_message", |
||||
type: "varchar(20)", |
||||
maxLength: 20, |
||||
nullable: true, |
||||
comment: "用户名", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(30)", |
||||
oldMaxLength: 30, |
||||
oldNullable: true, |
||||
oldComment: "用户名") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,45 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class addimfieldlength01 : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "VisitorName", |
||||
table: "app_visitor_record", |
||||
type: "varchar(64)", |
||||
maxLength: 64, |
||||
nullable: true, |
||||
comment: "被监管人用户名", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(30)", |
||||
oldMaxLength: 30, |
||||
oldNullable: true, |
||||
oldComment: "被监管人用户名") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "VisitorName", |
||||
table: "app_visitor_record", |
||||
type: "varchar(30)", |
||||
maxLength: 30, |
||||
nullable: true, |
||||
comment: "被监管人用户名", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(64)", |
||||
oldMaxLength: 64, |
||||
oldNullable: true, |
||||
oldComment: "被监管人用户名") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,26 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class addimtablefield : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AddColumn<long>( |
||||
name: "UserId", |
||||
table: "app_visitor_record", |
||||
type: "bigint", |
||||
nullable: true, |
||||
comment: "用户Id"); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropColumn( |
||||
name: "UserId", |
||||
table: "app_visitor_record"); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,58 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class addsignTableField : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AddColumn<string>( |
||||
name: "DeviceName", |
||||
table: "app_signs_information", |
||||
type: "varchar(64)", |
||||
maxLength: 64, |
||||
nullable: true, |
||||
comment: "") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "app_device_management", |
||||
type: "varchar(64)", |
||||
maxLength: 64, |
||||
nullable: true, |
||||
comment: "设备名称", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(30)", |
||||
oldMaxLength: 30, |
||||
oldNullable: true, |
||||
oldComment: "设备名称") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropColumn( |
||||
name: "DeviceName", |
||||
table: "app_signs_information"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "app_device_management", |
||||
type: "varchar(30)", |
||||
maxLength: 30, |
||||
nullable: true, |
||||
comment: "设备名称", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(64)", |
||||
oldMaxLength: 64, |
||||
oldNullable: true, |
||||
oldComment: "设备名称") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,41 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class addsignTableField01 : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AddColumn<string>( |
||||
name: "DeviceName", |
||||
table: "app_supervised_person_real_time_location", |
||||
type: "varchar(64)", |
||||
maxLength: 64, |
||||
nullable: true, |
||||
comment: "设备名称") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AddColumn<string>( |
||||
name: "Place", |
||||
table: "app_supervised_person_real_time_location", |
||||
type: "varchar(255)", |
||||
maxLength: 255, |
||||
nullable: true, |
||||
comment: "地点") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropColumn( |
||||
name: "DeviceName", |
||||
table: "app_supervised_person_real_time_location"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "Place", |
||||
table: "app_supervised_person_real_time_location"); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,27 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class addsignTableField02 : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropColumn( |
||||
name: "ApplicationTime", |
||||
table: "app_business_application"); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AddColumn<DateTime>( |
||||
name: "ApplicationTime", |
||||
table: "app_business_application", |
||||
type: "datetime(6)", |
||||
nullable: false, |
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), |
||||
comment: "申请时间"); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,86 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class addsignTableField03 : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.RenameColumn( |
||||
name: "UserId", |
||||
table: "app_visitor_record", |
||||
newName: "VisitorId"); |
||||
|
||||
migrationBuilder.RenameColumn( |
||||
name: "UserId", |
||||
table: "app_session_information", |
||||
newName: "OriginalReceiverId"); |
||||
|
||||
migrationBuilder.AddColumn<string>( |
||||
name: "Avatar", |
||||
table: "app_visitor_record", |
||||
type: "varchar(128)", |
||||
maxLength: 128, |
||||
nullable: true, |
||||
comment: "头像路径") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AddColumn<int>( |
||||
name: "Gender", |
||||
table: "app_visitor_record", |
||||
type: "int", |
||||
nullable: false, |
||||
defaultValue: 0, |
||||
comment: "性别枚举(0:男性 1:女性 2:未知)"); |
||||
|
||||
migrationBuilder.AddColumn<string>( |
||||
name: "NickName", |
||||
table: "app_visitor_record", |
||||
type: "varchar(30)", |
||||
maxLength: 30, |
||||
nullable: true, |
||||
comment: "昵称") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AddColumn<string>( |
||||
name: "Phone", |
||||
table: "app_visitor_record", |
||||
type: "varchar(11)", |
||||
maxLength: 11, |
||||
nullable: true, |
||||
comment: "手机号(手机号限制输入为手机号格式,位数为11位。)") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropColumn( |
||||
name: "Avatar", |
||||
table: "app_visitor_record"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "Gender", |
||||
table: "app_visitor_record"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "NickName", |
||||
table: "app_visitor_record"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "Phone", |
||||
table: "app_visitor_record"); |
||||
|
||||
migrationBuilder.RenameColumn( |
||||
name: "VisitorId", |
||||
table: "app_visitor_record", |
||||
newName: "UserId"); |
||||
|
||||
migrationBuilder.RenameColumn( |
||||
name: "OriginalReceiverId", |
||||
table: "app_session_information", |
||||
newName: "UserId"); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,349 @@
|
||||
using Microsoft.EntityFrameworkCore.Metadata; |
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class addbusinesstablefield : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterTable( |
||||
name: "app_business_application", |
||||
comment: "被监管人员==>业务申请(比如:申请跨域活动等)对应监管人员办案频次统计 (消息通知)", |
||||
oldComment: "被监管人员==>业务申请(比如:申请跨域活动等)对应监管人员办案频次统计") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AddColumn<string>( |
||||
name: "IMEI", |
||||
table: "app_user", |
||||
type: "varchar(64)", |
||||
maxLength: 64, |
||||
nullable: true, |
||||
comment: "IMEI是被监管人在APP上提交申请时,会自动上报的手机唯一标识数据。(获取自动登录)") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Title", |
||||
table: "app_early_warning", |
||||
type: "varchar(30)", |
||||
maxLength: 30, |
||||
nullable: true, |
||||
comment: "消息标题", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(30)", |
||||
oldMaxLength: 30, |
||||
oldNullable: true, |
||||
oldComment: "标题") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "IMEI", |
||||
table: "app_case_supervised_person", |
||||
type: "varchar(64)", |
||||
maxLength: 64, |
||||
nullable: true, |
||||
comment: "IMEI是被监管人在APP上提交申请时,会自动上报的手机唯一标识数据。(获取自动登录)", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(64)", |
||||
oldMaxLength: 64, |
||||
oldNullable: true, |
||||
oldComment: "IMEI是被监管人在APP上提交申请时,会自动上报的手机唯一标识数据。") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AddColumn<string>( |
||||
name: "ApplicationTypeName", |
||||
table: "app_business_application", |
||||
type: "varchar(30)", |
||||
maxLength: 30, |
||||
nullable: true, |
||||
comment: "申请类型名称(数据来自字典)") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "SupervisedPersonName", |
||||
table: "app_announcement_view_statistics", |
||||
type: "varchar(20)", |
||||
maxLength: 20, |
||||
nullable: true, |
||||
comment: "被监管人员(订阅人)", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(20)", |
||||
oldMaxLength: 20, |
||||
oldNullable: true, |
||||
oldComment: "被监管人员") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AlterColumn<long>( |
||||
name: "SupervisedPersonId", |
||||
table: "app_announcement_view_statistics", |
||||
type: "bigint", |
||||
nullable: false, |
||||
comment: "被监管人Id(订阅人)", |
||||
oldClrType: typeof(long), |
||||
oldType: "bigint", |
||||
oldComment: "被监管人Id"); |
||||
|
||||
migrationBuilder.AlterColumn<DateTime>( |
||||
name: "CheckTime", |
||||
table: "app_announcement_view_statistics", |
||||
type: "datetime(6)", |
||||
nullable: true, |
||||
comment: "查阅时间", |
||||
oldClrType: typeof(DateTime), |
||||
oldType: "datetime(6)", |
||||
oldComment: "查阅时间"); |
||||
|
||||
migrationBuilder.AlterColumn<long>( |
||||
name: "AnnouncementTypeId", |
||||
table: "app_announcement", |
||||
type: "bigint", |
||||
nullable: false, |
||||
comment: "公告类型(数据来自字典)", |
||||
oldClrType: typeof(long), |
||||
oldType: "bigint", |
||||
oldComment: "公共类型(数据来自字典)"); |
||||
|
||||
migrationBuilder.AddColumn<string>( |
||||
name: "AnnouncementTypeName", |
||||
table: "app_announcement", |
||||
type: "varchar(30)", |
||||
maxLength: 30, |
||||
nullable: true, |
||||
comment: "公告类型名称(数据来自字典)") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AddColumn<int>( |
||||
name: "MessageType", |
||||
table: "app_announcement", |
||||
type: "int", |
||||
nullable: false, |
||||
defaultValue: 0, |
||||
comment: "消息类型"); |
||||
|
||||
migrationBuilder.AddColumn<long>( |
||||
name: "SenderId", |
||||
table: "app_announcement", |
||||
type: "bigint", |
||||
nullable: false, |
||||
defaultValue: 0L, |
||||
comment: "发送人"); |
||||
|
||||
migrationBuilder.CreateTable( |
||||
name: "AppBusinessApplicationViewStatistics", |
||||
columns: table => new |
||||
{ |
||||
Id = table.Column<long>(type: "bigint", nullable: false, comment: "") |
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), |
||||
AppBusinessApplicationId = table.Column<long>(type: "bigint", nullable: false, comment: "公告Id"), |
||||
CaseId = table.Column<long>(type: "bigint", nullable: false, comment: "案件Id"), |
||||
SupervisedId = table.Column<long>(type: "bigint", nullable: false, comment: "监管人Id(订阅人)"), |
||||
SupervisedName = table.Column<string>(type: "varchar(20)", maxLength: 20, nullable: true, comment: "监管人员(订阅人)") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "), |
||||
CheckStatus = table.Column<int>(type: "int", nullable: false, comment: "查阅状态枚举(0:未查阅 1:已查阅)"), |
||||
CheckTime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "查阅时间"), |
||||
CreatedUserId = table.Column<long>(type: "bigint", nullable: true, comment: ""), |
||||
CreatedUserName = table.Column<string>(type: "varchar(20)", maxLength: 20, nullable: true, comment: "") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "), |
||||
CreatedTime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "") |
||||
}, |
||||
constraints: table => |
||||
{ |
||||
table.PrimaryKey("PK_AppBusinessApplicationViewStatistics", x => x.Id); |
||||
}, |
||||
comment: "业务申请查阅统计表") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.CreateTable( |
||||
name: "BaseNotificationEntity", |
||||
columns: table => new |
||||
{ |
||||
Id = table.Column<long>(type: "bigint", nullable: false, comment: "") |
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), |
||||
Title = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: false, comment: "消息标题") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "), |
||||
Content = table.Column<string>(type: "varchar(1024)", maxLength: 1024, nullable: false, comment: "消息内容") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "), |
||||
MessageType = table.Column<int>(type: "int", nullable: false, comment: "消息类型"), |
||||
SenderId = table.Column<Guid>(type: "char(36)", nullable: false, comment: "发送人", collation: "ascii_general_ci"), |
||||
DataStatus = table.Column<int>(type: "int", nullable: false, comment: ""), |
||||
Version = table.Column<long>(type: "bigint", nullable: false, comment: ""), |
||||
IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, comment: ""), |
||||
CreatedUserId = table.Column<long>(type: "bigint", nullable: true, comment: ""), |
||||
CreatedUserName = table.Column<string>(type: "varchar(20)", maxLength: 20, nullable: true, comment: "") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "), |
||||
CreatedTime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: ""), |
||||
ModifiedUserId = table.Column<long>(type: "bigint", nullable: true, comment: ""), |
||||
ModifiedUserName = table.Column<string>(type: "varchar(20)", maxLength: 20, nullable: true, comment: "") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "), |
||||
ModifiedTime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "") |
||||
}, |
||||
constraints: table => |
||||
{ |
||||
table.PrimaryKey("PK_BaseNotificationEntity", x => x.Id); |
||||
}, |
||||
comment: "消息通知基类") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.CreateTable( |
||||
name: "BaseNotificationSubscriptionEntity", |
||||
columns: table => new |
||||
{ |
||||
Id = table.Column<long>(type: "bigint", nullable: false, comment: "") |
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), |
||||
ReceiveId = table.Column<long>(type: "bigint", nullable: false, comment: "订阅人"), |
||||
Read = table.Column<bool>(type: "tinyint(1)", nullable: false, comment: "是否已读"), |
||||
ReadTime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "已读时间"), |
||||
BaseNotificationEntityId = table.Column<long>(type: "bigint", nullable: true), |
||||
DataStatus = table.Column<int>(type: "int", nullable: false, comment: ""), |
||||
Version = table.Column<long>(type: "bigint", nullable: false, comment: ""), |
||||
IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, comment: ""), |
||||
CreatedUserId = table.Column<long>(type: "bigint", nullable: true, comment: ""), |
||||
CreatedUserName = table.Column<string>(type: "varchar(20)", maxLength: 20, nullable: true, comment: "") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "), |
||||
CreatedTime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: ""), |
||||
ModifiedUserId = table.Column<long>(type: "bigint", nullable: true, comment: ""), |
||||
ModifiedUserName = table.Column<string>(type: "varchar(20)", maxLength: 20, nullable: true, comment: "") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "), |
||||
ModifiedTime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "") |
||||
}, |
||||
constraints: table => |
||||
{ |
||||
table.PrimaryKey("PK_BaseNotificationSubscriptionEntity", x => x.Id); |
||||
table.ForeignKey( |
||||
name: "FK_BaseNotificationSubscriptionEntity_BaseNotificationEntity_Ba~", |
||||
column: x => x.BaseNotificationEntityId, |
||||
principalTable: "BaseNotificationEntity", |
||||
principalColumn: "Id"); |
||||
}, |
||||
comment: "消息订阅者") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_BaseNotificationSubscriptionEntity_BaseNotificationEntityId", |
||||
table: "BaseNotificationSubscriptionEntity", |
||||
column: "BaseNotificationEntityId"); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropTable( |
||||
name: "AppBusinessApplicationViewStatistics"); |
||||
|
||||
migrationBuilder.DropTable( |
||||
name: "BaseNotificationSubscriptionEntity"); |
||||
|
||||
migrationBuilder.DropTable( |
||||
name: "BaseNotificationEntity"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "IMEI", |
||||
table: "app_user"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "ApplicationTypeName", |
||||
table: "app_business_application"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "AnnouncementTypeName", |
||||
table: "app_announcement"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "MessageType", |
||||
table: "app_announcement"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "SenderId", |
||||
table: "app_announcement"); |
||||
|
||||
migrationBuilder.AlterTable( |
||||
name: "app_business_application", |
||||
comment: "被监管人员==>业务申请(比如:申请跨域活动等)对应监管人员办案频次统计", |
||||
oldComment: "被监管人员==>业务申请(比如:申请跨域活动等)对应监管人员办案频次统计 (消息通知)") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Title", |
||||
table: "app_early_warning", |
||||
type: "varchar(30)", |
||||
maxLength: 30, |
||||
nullable: true, |
||||
comment: "标题", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(30)", |
||||
oldMaxLength: 30, |
||||
oldNullable: true, |
||||
oldComment: "消息标题") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "IMEI", |
||||
table: "app_case_supervised_person", |
||||
type: "varchar(64)", |
||||
maxLength: 64, |
||||
nullable: true, |
||||
comment: "IMEI是被监管人在APP上提交申请时,会自动上报的手机唯一标识数据。", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(64)", |
||||
oldMaxLength: 64, |
||||
oldNullable: true, |
||||
oldComment: "IMEI是被监管人在APP上提交申请时,会自动上报的手机唯一标识数据。(获取自动登录)") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "SupervisedPersonName", |
||||
table: "app_announcement_view_statistics", |
||||
type: "varchar(20)", |
||||
maxLength: 20, |
||||
nullable: true, |
||||
comment: "被监管人员", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(20)", |
||||
oldMaxLength: 20, |
||||
oldNullable: true, |
||||
oldComment: "被监管人员(订阅人)") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AlterColumn<long>( |
||||
name: "SupervisedPersonId", |
||||
table: "app_announcement_view_statistics", |
||||
type: "bigint", |
||||
nullable: false, |
||||
comment: "被监管人Id", |
||||
oldClrType: typeof(long), |
||||
oldType: "bigint", |
||||
oldComment: "被监管人Id(订阅人)"); |
||||
|
||||
migrationBuilder.AlterColumn<DateTime>( |
||||
name: "CheckTime", |
||||
table: "app_announcement_view_statistics", |
||||
type: "datetime(6)", |
||||
nullable: false, |
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), |
||||
comment: "查阅时间", |
||||
oldClrType: typeof(DateTime), |
||||
oldType: "datetime(6)", |
||||
oldNullable: true, |
||||
oldComment: "查阅时间"); |
||||
|
||||
migrationBuilder.AlterColumn<long>( |
||||
name: "AnnouncementTypeId", |
||||
table: "app_announcement", |
||||
type: "bigint", |
||||
nullable: false, |
||||
comment: "公共类型(数据来自字典)", |
||||
oldClrType: typeof(long), |
||||
oldType: "bigint", |
||||
oldComment: "公告类型(数据来自字典)"); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,41 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class addbusinesstablename : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropPrimaryKey( |
||||
name: "PK_AppBusinessApplicationViewStatistics", |
||||
table: "AppBusinessApplicationViewStatistics"); |
||||
|
||||
migrationBuilder.RenameTable( |
||||
name: "AppBusinessApplicationViewStatistics", |
||||
newName: "app_business_application_view_statistics"); |
||||
|
||||
migrationBuilder.AddPrimaryKey( |
||||
name: "PK_app_business_application_view_statistics", |
||||
table: "app_business_application_view_statistics", |
||||
column: "Id"); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropPrimaryKey( |
||||
name: "PK_app_business_application_view_statistics", |
||||
table: "app_business_application_view_statistics"); |
||||
|
||||
migrationBuilder.RenameTable( |
||||
name: "app_business_application_view_statistics", |
||||
newName: "AppBusinessApplicationViewStatistics"); |
||||
|
||||
migrationBuilder.AddPrimaryKey( |
||||
name: "PK_AppBusinessApplicationViewStatistics", |
||||
table: "AppBusinessApplicationViewStatistics", |
||||
column: "Id"); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,211 @@
|
||||
using Microsoft.EntityFrameworkCore.Metadata; |
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustuserTable : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropTable( |
||||
name: "BaseNotificationSubscriptionEntity"); |
||||
|
||||
migrationBuilder.DropTable( |
||||
name: "BaseNotificationEntity"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "RoleId", |
||||
table: "app_user"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "VisitorName", |
||||
table: "app_visitor_record", |
||||
type: "varchar(64)", |
||||
maxLength: 64, |
||||
nullable: true, |
||||
comment: "被监管人用户名( _user.Name)", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(64)", |
||||
oldMaxLength: 64, |
||||
oldNullable: true, |
||||
oldComment: "被监管人用户名") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AlterColumn<long>( |
||||
name: "VisitorId", |
||||
table: "app_visitor_record", |
||||
type: "bigint", |
||||
nullable: true, |
||||
comment: "用户Id( _user.Id)", |
||||
oldClrType: typeof(long), |
||||
oldType: "bigint", |
||||
oldNullable: true, |
||||
oldComment: "用户Id"); |
||||
|
||||
migrationBuilder.AddColumn<string>( |
||||
name: "PositionName", |
||||
table: "app_user", |
||||
type: "varchar(30)", |
||||
maxLength: 30, |
||||
nullable: true, |
||||
comment: "职位名称(数据字典)") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AddColumn<string>( |
||||
name: "RoleName", |
||||
table: "app_user", |
||||
type: "varchar(255)", |
||||
maxLength: 255, |
||||
nullable: true, |
||||
comment: "角色名称(多个用逗号分割)") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "ConnectionId", |
||||
table: "app_session_information", |
||||
type: "varchar(36)", |
||||
maxLength: 36, |
||||
nullable: true, |
||||
comment: "当前会话连接Id (Context.ConnectionId)", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(36)", |
||||
oldMaxLength: 36, |
||||
oldNullable: true, |
||||
oldComment: "当前会话连接Id") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropColumn( |
||||
name: "PositionName", |
||||
table: "app_user"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "RoleName", |
||||
table: "app_user"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "VisitorName", |
||||
table: "app_visitor_record", |
||||
type: "varchar(64)", |
||||
maxLength: 64, |
||||
nullable: true, |
||||
comment: "被监管人用户名", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(64)", |
||||
oldMaxLength: 64, |
||||
oldNullable: true, |
||||
oldComment: "被监管人用户名( _user.Name)") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AlterColumn<long>( |
||||
name: "VisitorId", |
||||
table: "app_visitor_record", |
||||
type: "bigint", |
||||
nullable: true, |
||||
comment: "用户Id", |
||||
oldClrType: typeof(long), |
||||
oldType: "bigint", |
||||
oldNullable: true, |
||||
oldComment: "用户Id( _user.Id)"); |
||||
|
||||
migrationBuilder.AddColumn<long>( |
||||
name: "RoleId", |
||||
table: "app_user", |
||||
type: "bigint", |
||||
nullable: true, |
||||
comment: "用户类型(角色)"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "ConnectionId", |
||||
table: "app_session_information", |
||||
type: "varchar(36)", |
||||
maxLength: 36, |
||||
nullable: true, |
||||
comment: "当前会话连接Id", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(36)", |
||||
oldMaxLength: 36, |
||||
oldNullable: true, |
||||
oldComment: "当前会话连接Id (Context.ConnectionId)") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.CreateTable( |
||||
name: "BaseNotificationEntity", |
||||
columns: table => new |
||||
{ |
||||
Id = table.Column<long>(type: "bigint", nullable: false, comment: "") |
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), |
||||
Content = table.Column<string>(type: "varchar(1024)", maxLength: 1024, nullable: false, comment: "消息内容") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "), |
||||
CreatedTime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: ""), |
||||
CreatedUserId = table.Column<long>(type: "bigint", nullable: true, comment: ""), |
||||
CreatedUserName = table.Column<string>(type: "varchar(20)", maxLength: 20, nullable: true, comment: "") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "), |
||||
DataStatus = table.Column<int>(type: "int", nullable: false, comment: ""), |
||||
IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, comment: ""), |
||||
MessageType = table.Column<int>(type: "int", nullable: false, comment: "消息类型"), |
||||
ModifiedTime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: ""), |
||||
ModifiedUserId = table.Column<long>(type: "bigint", nullable: true, comment: ""), |
||||
ModifiedUserName = table.Column<string>(type: "varchar(20)", maxLength: 20, nullable: true, comment: "") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "), |
||||
SenderId = table.Column<Guid>(type: "char(36)", nullable: false, comment: "发送人", collation: "ascii_general_ci"), |
||||
Title = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: false, comment: "消息标题") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "), |
||||
Version = table.Column<long>(type: "bigint", nullable: false, comment: "") |
||||
}, |
||||
constraints: table => |
||||
{ |
||||
table.PrimaryKey("PK_BaseNotificationEntity", x => x.Id); |
||||
}, |
||||
comment: "消息通知基类") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.CreateTable( |
||||
name: "BaseNotificationSubscriptionEntity", |
||||
columns: table => new |
||||
{ |
||||
Id = table.Column<long>(type: "bigint", nullable: false, comment: "") |
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), |
||||
BaseNotificationEntityId = table.Column<long>(type: "bigint", nullable: true), |
||||
CreatedTime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: ""), |
||||
CreatedUserId = table.Column<long>(type: "bigint", nullable: true, comment: ""), |
||||
CreatedUserName = table.Column<string>(type: "varchar(20)", maxLength: 20, nullable: true, comment: "") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "), |
||||
DataStatus = table.Column<int>(type: "int", nullable: false, comment: ""), |
||||
IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, comment: ""), |
||||
ModifiedTime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: ""), |
||||
ModifiedUserId = table.Column<long>(type: "bigint", nullable: true, comment: ""), |
||||
ModifiedUserName = table.Column<string>(type: "varchar(20)", maxLength: 20, nullable: true, comment: "") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "), |
||||
Read = table.Column<bool>(type: "tinyint(1)", nullable: false, comment: "是否已读"), |
||||
ReadTime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "已读时间"), |
||||
ReceiveId = table.Column<long>(type: "bigint", nullable: false, comment: "订阅人"), |
||||
Version = table.Column<long>(type: "bigint", nullable: false, comment: "") |
||||
}, |
||||
constraints: table => |
||||
{ |
||||
table.PrimaryKey("PK_BaseNotificationSubscriptionEntity", x => x.Id); |
||||
table.ForeignKey( |
||||
name: "FK_BaseNotificationSubscriptionEntity_BaseNotificationEntity_Ba~", |
||||
column: x => x.BaseNotificationEntityId, |
||||
principalTable: "BaseNotificationEntity", |
||||
principalColumn: "Id"); |
||||
}, |
||||
comment: "消息订阅者") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_BaseNotificationSubscriptionEntity_BaseNotificationEntityId", |
||||
table: "BaseNotificationSubscriptionEntity", |
||||
column: "BaseNotificationEntityId"); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,59 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustcasetable : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<TimeOnly>( |
||||
name: "RestEndTime", |
||||
table: "app_case_management", |
||||
type: "time(6)", |
||||
nullable: true, |
||||
comment: "休息结束时间(格式:时分)", |
||||
oldClrType: typeof(DateTime), |
||||
oldType: "datetime(6)", |
||||
oldNullable: true, |
||||
oldComment: "休息结束时间(格式:时分)"); |
||||
|
||||
migrationBuilder.AlterColumn<TimeOnly>( |
||||
name: "RestBeginTime", |
||||
table: "app_case_management", |
||||
type: "time(6)", |
||||
nullable: true, |
||||
comment: "休息开始时间(格式:时分)", |
||||
oldClrType: typeof(DateTime), |
||||
oldType: "datetime(6)", |
||||
oldNullable: true, |
||||
oldComment: "休息开始时间(格式:时分)"); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<DateTime>( |
||||
name: "RestEndTime", |
||||
table: "app_case_management", |
||||
type: "datetime(6)", |
||||
nullable: true, |
||||
comment: "休息结束时间(格式:时分)", |
||||
oldClrType: typeof(TimeOnly), |
||||
oldType: "time(6)", |
||||
oldNullable: true, |
||||
oldComment: "休息结束时间(格式:时分)"); |
||||
|
||||
migrationBuilder.AlterColumn<DateTime>( |
||||
name: "RestBeginTime", |
||||
table: "app_case_management", |
||||
type: "datetime(6)", |
||||
nullable: true, |
||||
comment: "休息开始时间(格式:时分)", |
||||
oldClrType: typeof(TimeOnly), |
||||
oldType: "time(6)", |
||||
oldNullable: true, |
||||
oldComment: "休息开始时间(格式:时分)"); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,59 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustrestcasetable : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<DateTime>( |
||||
name: "RestEndTime", |
||||
table: "app_case_management", |
||||
type: "datetime(6)", |
||||
nullable: true, |
||||
comment: "休息结束时间(格式:时分)", |
||||
oldClrType: typeof(TimeOnly), |
||||
oldType: "time(6)", |
||||
oldNullable: true, |
||||
oldComment: "休息结束时间(格式:时分)"); |
||||
|
||||
migrationBuilder.AlterColumn<DateTime>( |
||||
name: "RestBeginTime", |
||||
table: "app_case_management", |
||||
type: "datetime(6)", |
||||
nullable: true, |
||||
comment: "休息开始时间(格式:时分)", |
||||
oldClrType: typeof(TimeOnly), |
||||
oldType: "time(6)", |
||||
oldNullable: true, |
||||
oldComment: "休息开始时间(格式:时分)"); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<TimeOnly>( |
||||
name: "RestEndTime", |
||||
table: "app_case_management", |
||||
type: "time(6)", |
||||
nullable: true, |
||||
comment: "休息结束时间(格式:时分)", |
||||
oldClrType: typeof(DateTime), |
||||
oldType: "datetime(6)", |
||||
oldNullable: true, |
||||
oldComment: "休息结束时间(格式:时分)"); |
||||
|
||||
migrationBuilder.AlterColumn<TimeOnly>( |
||||
name: "RestBeginTime", |
||||
table: "app_case_management", |
||||
type: "time(6)", |
||||
nullable: true, |
||||
comment: "休息开始时间(格式:时分)", |
||||
oldClrType: typeof(DateTime), |
||||
oldType: "datetime(6)", |
||||
oldNullable: true, |
||||
oldComment: "休息开始时间(格式:时分)"); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,38 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustimtable : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AddColumn<int>( |
||||
name: "CheckStatus", |
||||
table: "app_early_warning", |
||||
type: "int", |
||||
nullable: false, |
||||
defaultValue: 0, |
||||
comment: "查阅状态枚举(0:未查阅 1:已查阅)"); |
||||
|
||||
migrationBuilder.AddColumn<DateTime>( |
||||
name: "CheckTime", |
||||
table: "app_early_warning", |
||||
type: "datetime(6)", |
||||
nullable: true, |
||||
comment: "查阅时间"); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropColumn( |
||||
name: "CheckStatus", |
||||
table: "app_early_warning"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "CheckTime", |
||||
table: "app_early_warning"); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,45 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustapp_visitor_record : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "UserAgent", |
||||
table: "app_visitor_record", |
||||
type: "varchar(1024)", |
||||
maxLength: 1024, |
||||
nullable: true, |
||||
comment: "浏览器User-Agent", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(128)", |
||||
oldMaxLength: 128, |
||||
oldNullable: true, |
||||
oldComment: "浏览器User-Agent") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "UserAgent", |
||||
table: "app_visitor_record", |
||||
type: "varchar(128)", |
||||
maxLength: 128, |
||||
nullable: true, |
||||
comment: "浏览器User-Agent", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(1024)", |
||||
oldMaxLength: 1024, |
||||
oldNullable: true, |
||||
oldComment: "浏览器User-Agent") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,17 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustimannount : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,35 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustuserindex : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_user_UserName", |
||||
table: "app_user"); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_user_Phone", |
||||
table: "app_user", |
||||
column: "Phone", |
||||
unique: true); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_user_Phone", |
||||
table: "app_user"); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_user_UserName", |
||||
table: "app_user", |
||||
column: "UserName", |
||||
unique: true); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,17 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustuserindex01 : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,17 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustuserindex02 : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,301 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustimtablefield : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropColumn( |
||||
name: "PersonnelRole", |
||||
table: "app_visitor_record"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "PersonnelRole", |
||||
table: "app_session_message"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "IpAddress", |
||||
table: "app_session_information"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "OriginalReceiverId", |
||||
table: "app_session_information"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "PersonnelRole", |
||||
table: "app_session_information"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "VisitorId", |
||||
table: "app_session_information"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "PersonnelRole", |
||||
table: "app_leave_message"); |
||||
|
||||
migrationBuilder.AlterTable( |
||||
name: "app_session_message", |
||||
comment: "会话消息(就是相互发送的消息历史记录)", |
||||
oldComment: "会话消息") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AlterTable( |
||||
name: "app_session_information", |
||||
comment: "用户会话信息(就是进入聊天的当前会话连接信息)[可以说监管人、被监管人、管理员]", |
||||
oldComment: "被监管人会话信息") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AddColumn<int>( |
||||
name: "ChatPersonType", |
||||
table: "app_visitor_record", |
||||
type: "int", |
||||
nullable: false, |
||||
defaultValue: 0, |
||||
comment: "聊天类型(0:监管人 1:被监管人 2:管理员)"); |
||||
|
||||
migrationBuilder.AddColumn<int>( |
||||
name: "ChatPersonType", |
||||
table: "app_user", |
||||
type: "int", |
||||
nullable: false, |
||||
defaultValue: 0, |
||||
comment: "聊天类型(0:监管人 1:被监管人 2:管理员)"); |
||||
|
||||
migrationBuilder.AddColumn<long>( |
||||
name: "ReceiverId", |
||||
table: "app_session_message", |
||||
type: "bigint", |
||||
nullable: true, |
||||
comment: "接收人Id"); |
||||
|
||||
migrationBuilder.AddColumn<string>( |
||||
name: "ReceiverName", |
||||
table: "app_session_message", |
||||
type: "longtext", |
||||
nullable: true, |
||||
comment: "接收人名字") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AddColumn<long>( |
||||
name: "SenderId", |
||||
table: "app_session_message", |
||||
type: "bigint", |
||||
nullable: true, |
||||
comment: "发送人Id"); |
||||
|
||||
migrationBuilder.AddColumn<string>( |
||||
name: "SenderName", |
||||
table: "app_session_message", |
||||
type: "longtext", |
||||
nullable: true, |
||||
comment: "接收人Id") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AlterColumn<DateTime>( |
||||
name: "VisitorEntryTime", |
||||
table: "app_session_information", |
||||
type: "datetime(6)", |
||||
nullable: false, |
||||
comment: "发送者(例如:被监管人)进入时间", |
||||
oldClrType: typeof(DateTime), |
||||
oldType: "datetime(6)", |
||||
oldComment: "被监管人进入时间"); |
||||
|
||||
migrationBuilder.AddColumn<int>( |
||||
name: "ChatPersonType", |
||||
table: "app_session_information", |
||||
type: "int", |
||||
nullable: false, |
||||
defaultValue: 0, |
||||
comment: "聊天类型(0:监管人 1:被监管人 2:管理员)"); |
||||
|
||||
migrationBuilder.AddColumn<string>( |
||||
name: "Phone", |
||||
table: "app_session_information", |
||||
type: "varchar(11)", |
||||
maxLength: 11, |
||||
nullable: true, |
||||
comment: "手机号") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AddColumn<long>( |
||||
name: "ReceiverId", |
||||
table: "app_session_information", |
||||
type: "bigint", |
||||
nullable: true, |
||||
comment: "接收人Id"); |
||||
|
||||
migrationBuilder.AddColumn<string>( |
||||
name: "ReceiverName", |
||||
table: "app_session_information", |
||||
type: "varchar(30)", |
||||
maxLength: 30, |
||||
nullable: true, |
||||
comment: "接收人名字") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AddColumn<long>( |
||||
name: "SenderId", |
||||
table: "app_session_information", |
||||
type: "bigint", |
||||
nullable: true, |
||||
comment: "发送人Id"); |
||||
|
||||
migrationBuilder.AddColumn<string>( |
||||
name: "SenderName", |
||||
table: "app_session_information", |
||||
type: "varchar(30)", |
||||
maxLength: 30, |
||||
nullable: true, |
||||
comment: "接收人Id") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AddColumn<int>( |
||||
name: "ChatPersonType", |
||||
table: "app_leave_message", |
||||
type: "int", |
||||
nullable: false, |
||||
defaultValue: 0, |
||||
comment: "聊天类型(0:监管人 1:被监管人 2:管理员)"); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropColumn( |
||||
name: "ChatPersonType", |
||||
table: "app_visitor_record"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "ChatPersonType", |
||||
table: "app_user"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "ReceiverId", |
||||
table: "app_session_message"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "ReceiverName", |
||||
table: "app_session_message"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "SenderId", |
||||
table: "app_session_message"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "SenderName", |
||||
table: "app_session_message"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "ChatPersonType", |
||||
table: "app_session_information"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "Phone", |
||||
table: "app_session_information"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "ReceiverId", |
||||
table: "app_session_information"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "ReceiverName", |
||||
table: "app_session_information"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "SenderId", |
||||
table: "app_session_information"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "SenderName", |
||||
table: "app_session_information"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "ChatPersonType", |
||||
table: "app_leave_message"); |
||||
|
||||
migrationBuilder.AlterTable( |
||||
name: "app_session_message", |
||||
comment: "会话消息", |
||||
oldComment: "会话消息(就是相互发送的消息历史记录)") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AlterTable( |
||||
name: "app_session_information", |
||||
comment: "被监管人会话信息", |
||||
oldComment: "用户会话信息(就是进入聊天的当前会话连接信息)[可以说监管人、被监管人、管理员]") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AddColumn<int>( |
||||
name: "PersonnelRole", |
||||
table: "app_visitor_record", |
||||
type: "int", |
||||
nullable: false, |
||||
defaultValue: 0, |
||||
comment: "即时聊天中人员角色(0: 被监管人员 1:监管人员 2:管理员)"); |
||||
|
||||
migrationBuilder.AddColumn<int>( |
||||
name: "PersonnelRole", |
||||
table: "app_session_message", |
||||
type: "int", |
||||
nullable: false, |
||||
defaultValue: 0, |
||||
comment: "即时聊天中人员角色(0: 被监管人员 1:监管人员 2:管理员)"); |
||||
|
||||
migrationBuilder.AlterColumn<DateTime>( |
||||
name: "VisitorEntryTime", |
||||
table: "app_session_information", |
||||
type: "datetime(6)", |
||||
nullable: false, |
||||
comment: "被监管人进入时间", |
||||
oldClrType: typeof(DateTime), |
||||
oldType: "datetime(6)", |
||||
oldComment: "发送者(例如:被监管人)进入时间"); |
||||
|
||||
migrationBuilder.AddColumn<string>( |
||||
name: "IpAddress", |
||||
table: "app_session_information", |
||||
type: "varchar(64)", |
||||
maxLength: 64, |
||||
nullable: true, |
||||
comment: "被监管人IP地址") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.AddColumn<long>( |
||||
name: "OriginalReceiverId", |
||||
table: "app_session_information", |
||||
type: "bigint", |
||||
nullable: true, |
||||
comment: "原始监管人Id"); |
||||
|
||||
migrationBuilder.AddColumn<int>( |
||||
name: "PersonnelRole", |
||||
table: "app_session_information", |
||||
type: "int", |
||||
nullable: false, |
||||
defaultValue: 0, |
||||
comment: "即时聊天中人员角色(0: 被监管人员 1:监管人员 2:管理员)"); |
||||
|
||||
migrationBuilder.AddColumn<long>( |
||||
name: "VisitorId", |
||||
table: "app_session_information", |
||||
type: "bigint", |
||||
nullable: true, |
||||
comment: "被监管人 Id"); |
||||
|
||||
migrationBuilder.AddColumn<int>( |
||||
name: "PersonnelRole", |
||||
table: "app_leave_message", |
||||
type: "int", |
||||
nullable: false, |
||||
defaultValue: 0, |
||||
comment: "即时聊天中人员角色(0: 被监管人员 1:监管人员 2:管理员)"); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,63 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustimtablefield01 : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropColumn( |
||||
name: "PersonnelRole", |
||||
table: "app_customer"); |
||||
|
||||
migrationBuilder.AddColumn<int>( |
||||
name: "CheckStatus", |
||||
table: "app_session_message", |
||||
type: "int", |
||||
nullable: false, |
||||
defaultValue: 0, |
||||
comment: "查阅状态枚举(0:未查阅 1:已查阅)"); |
||||
|
||||
migrationBuilder.AddColumn<int>( |
||||
name: "CheckStatus", |
||||
table: "app_leave_message", |
||||
type: "int", |
||||
nullable: false, |
||||
defaultValue: 0, |
||||
comment: "查阅状态枚举(0:未查阅 1:已查阅)"); |
||||
|
||||
migrationBuilder.AddColumn<int>( |
||||
name: "ChatPersonType", |
||||
table: "app_customer", |
||||
type: "int", |
||||
nullable: false, |
||||
defaultValue: 0, |
||||
comment: "聊天类型(0:监管人 1:被监管人 2:管理员)"); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropColumn( |
||||
name: "CheckStatus", |
||||
table: "app_session_message"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "CheckStatus", |
||||
table: "app_leave_message"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "ChatPersonType", |
||||
table: "app_customer"); |
||||
|
||||
migrationBuilder.AddColumn<int>( |
||||
name: "PersonnelRole", |
||||
table: "app_customer", |
||||
type: "int", |
||||
nullable: false, |
||||
defaultValue: 0, |
||||
comment: "即时聊天中人员角色(0: 被监管人员 1:监管人员 2:管理员)"); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,17 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustimtablefield02 : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,17 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustimtablefield03 : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,28 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustimtablefieldlast : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AddColumn<string>( |
||||
name: "IpAddress", |
||||
table: "app_session_information", |
||||
type: "varchar(64)", |
||||
maxLength: 64, |
||||
nullable: true, |
||||
comment: "访客IP地址") |
||||
.Annotation("MySql:CharSet", "utf8mb4 "); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropColumn( |
||||
name: "IpAddress", |
||||
table: "app_session_information"); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,17 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustimtablefieldlast01 : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,17 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustimtablefieldlast02 : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,17 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustimtablefieldlast03 : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,85 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin |
||||
{ |
||||
public partial class adjustusertablefield : Migration |
||||
{ |
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_user_Phone", |
||||
table: "app_user"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_case_supervised_person_CaseId_SupervisedPersonId", |
||||
table: "app_case_supervised_person"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "SupervisedPersonName", |
||||
table: "app_case_supervised_person", |
||||
type: "longtext", |
||||
nullable: true, |
||||
comment: "被监管人-名字 (来着用户表) \r\n 姓名可模糊搜索系统用户管理中用户类型为“被监管人”的数据,展示“姓名_手机号”,选择后可作为填写数据的默认值,用户还是可以在此基础上进行更改。", |
||||
oldClrType: typeof(string), |
||||
oldType: "longtext", |
||||
oldComment: "被监管人-名字 (来着用户表) \r\n 姓名可模糊搜索系统用户管理中用户类型为“被监管人”的数据,展示“姓名_手机号”,选择后可作为填写数据的默认值,用户还是可以在此基础上进行更改。") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_user_Phone_IdCard", |
||||
table: "app_user", |
||||
columns: new[] { "Phone", "IdCard" }, |
||||
unique: true); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_case_supervised_person_CaseId_SupervisedPersonId_Phone_I~", |
||||
table: "app_case_supervised_person", |
||||
columns: new[] { "CaseId", "SupervisedPersonId", "Phone", "IdCard" }); |
||||
} |
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_user_Phone_IdCard", |
||||
table: "app_user"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_app_case_supervised_person_CaseId_SupervisedPersonId_Phone_I~", |
||||
table: "app_case_supervised_person"); |
||||
|
||||
migrationBuilder.UpdateData( |
||||
table: "app_case_supervised_person", |
||||
keyColumn: "SupervisedPersonName", |
||||
keyValue: null, |
||||
column: "SupervisedPersonName", |
||||
value: ""); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "SupervisedPersonName", |
||||
table: "app_case_supervised_person", |
||||
type: "longtext", |
||||
nullable: false, |
||||
comment: "被监管人-名字 (来着用户表) \r\n 姓名可模糊搜索系统用户管理中用户类型为“被监管人”的数据,展示“姓名_手机号”,选择后可作为填写数据的默认值,用户还是可以在此基础上进行更改。", |
||||
oldClrType: typeof(string), |
||||
oldType: "longtext", |
||||
oldNullable: true, |
||||
oldComment: "被监管人-名字 (来着用户表) \r\n 姓名可模糊搜索系统用户管理中用户类型为“被监管人”的数据,展示“姓名_手机号”,选择后可作为填写数据的默认值,用户还是可以在此基础上进行更改。") |
||||
.Annotation("MySql:CharSet", "utf8mb4 ") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4 "); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_user_Phone", |
||||
table: "app_user", |
||||
column: "Phone", |
||||
unique: true); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_app_case_supervised_person_CaseId_SupervisedPersonId", |
||||
table: "app_case_supervised_person", |
||||
columns: new[] { "CaseId", "SupervisedPersonId" }); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue