[성현모] [HubX] DB 프로젝트 생성, DB 스크립트 추가

This commit is contained in:
SHM
2025-03-12 11:46:14 +09:00
parent 32d5df71f9
commit e97b5a3524
12 changed files with 503 additions and 2 deletions

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Operations Version="1.0" xmlns="http://schemas.microsoft.com/sqlserver/dac/Serialization/2012/02">
<Operation Name="Rename Refactor" Key="938971a7-29c7-4cec-9307-c9f403986551" ChangeDateTime="03/12/2025 02:33:40">
<Property Name="ElementName" Value="[dbo].[tStorage].[cData]" />
<Property Name="ElementType" Value="SqlSimpleColumn" />
<Property Name="ParentElementName" Value="[dbo].[tStorage]" />
<Property Name="ParentElementType" Value="SqlTable" />
<Property Name="NewName" Value="cData1" />
</Operation>
</Operations>

View File

@ -13,7 +13,7 @@
</RootPath>
<RootNamespace>HubX.DB</RootNamespace>
<AssemblyName>HubX.DB</AssemblyName>
<ModelCollation>1033, CI</ModelCollation>
<ModelCollation>1042,CI</ModelCollation>
<DefaultFileStructure>BySchemaAndSchemaType</DefaultFileStructure>
<DeployToDatabase>True</DeployToDatabase>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
@ -22,6 +22,8 @@
<SqlServerVerification>False</SqlServerVerification>
<IncludeCompositeObjects>True</IncludeCompositeObjects>
<TargetDatabaseSet>True</TargetDatabaseSet>
<GenerateCreateScript>True</GenerateCreateScript>
<DefaultCollation>Korean_Wansung_CI_AS</DefaultCollation>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>bin\Release\</OutputPath>
@ -37,7 +39,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
<BuildScriptName>$(MSBuildProjectName).sql</BuildScriptName>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
@ -56,5 +58,21 @@
<Import Condition="'$(SQLDBExtensionsRefPath)' == ''" Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets" />
<ItemGroup>
<Folder Include="Properties" />
<Folder Include="dbo" />
<Folder Include="dbo\Functions" />
<Folder Include="dbo\Scripts" />
<Folder Include="dbo\StoredProcedures" />
<Folder Include="dbo\Tables" />
</ItemGroup>
<ItemGroup>
<Build Include="dbo\Tables\tStorage.sql" />
</ItemGroup>
<ItemGroup>
<RefactorLog Include="HubX.DB.refactorlog" />
</ItemGroup>
<PropertyGroup>
<PostBuildEvent>xcopy /y $(ProjectDir)$(OutputPath)$(TargetName)_Create.sql $(SolutionDir)DBPatch\sqlScripts\
xcopy /y $(ProjectDir)$(OutputPath)$(TargetName).dacpac $(SolutionDir)DBPatch\sqlScripts\dacpac\</PostBuildEvent>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,11 @@
CREATE TABLE [dbo].[tStorage]
(
[cHuid] BIGINT NOT NULL PRIMARY KEY IDENTITY(1,1),
[cIdentity] NVARCHAR(200) NOT NULL,
[cDateTime] DATETIME2 NOT NULL,
[cData1] NVARCHAR(4000),
[cData2] NVARCHAR(4000),
[cData3] NVARCHAR(4000),
[cData4] NVARCHAR(4000),
[cData5] NVARCHAR(4000),
)