1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00

[PM-1390] X-Plat/SDK Style SQL Project (#2795)

* Use SDK Style .sqlproj

* Fix Validate Job

* Debug Build

* Debug Validate

* Fix Build (Hopefully)

* Remove Unneeded `xmlns`

Co-authored-by: Oscar Hinton <Hinton@users.noreply.github.com>

* Upload Dacpac in Pipeline

* Add Version Tag

---------

Co-authored-by: Oscar Hinton <Hinton@users.noreply.github.com>
This commit is contained in:
Justin Baur 2023-04-27 15:44:34 -04:00 committed by GitHub
parent b02d86fad7
commit 09f86f23fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 38 additions and 522 deletions

View File

@ -20,52 +20,34 @@ on:
inputs: {}
jobs:
build:
name: Build DACPAC
runs-on: windows-2022
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
validate:
name: Validate
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3.5.2
- name: Set up dotnet
uses: actions/setup-dotnet@9211491ffb35dd6a6657ca4f45d43dfe6e97c829
uses: actions/setup-dotnet@9211491ffb35dd6a6657ca4f45d43dfe6e97c829 # v3.0.3
with:
dotnet-version: '6.0.x'
- name: Set up MSBuild
uses: microsoft/setup-msbuild@ab534842b4bdf384b8aaf93765dc6f721d9f5fab
- name: Print environment
run: |
dotnet --info
msbuild -version
nuget help | grep Version
echo "GitHub ref: $GITHUB_REF"
echo "GitHub event: $GITHUB_EVENT"
- name: Checkout repo
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846
- name: Build DACPAC
run: msbuild src/Sql/Sql.sqlproj /p:Configuration=Release /verbosity:minimal
run: dotnet build src/Sql --configuration Release --verbosity minimal --output .
shell: pwsh
- name: Upload DACPAC
uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535
with:
name: sql.dacpac
path: src/Sql/bin/Release/Sql.dacpac
validate:
name: Validate
runs-on: ubuntu-20.04
needs: build
steps:
- name: Checkout repo
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846
- name: Download dacpac
uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741
uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v3.1.2
with:
name: sql.dacpac
path: Sql.dacpac
- name: Docker Compose up
working-directory: "dev"
@ -88,7 +70,7 @@ jobs:
shell: pwsh
- name: Upload Report
uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535
uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v3.1.2
with:
name: report.xml
path: |

View File

@ -1,500 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project DefaultTargets="Build">
<Sdk Name="Microsoft.Build.Sql" Version="0.1.9-preview" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<Name>Sql</Name>
<SchemaVersion>2.0</SchemaVersion>
<ProjectVersion>4.1</ProjectVersion>
<ProjectGuid>{58554e52-fdec-4832-aff9-302b01e08dca}</ProjectGuid>
<DSP>Microsoft.Data.Tools.Schema.Sql.SqlAzureV12DatabaseSchemaProvider</DSP>
<OutputType>Database</OutputType>
<RootPath>
</RootPath>
<RootNamespace>Sql</RootNamespace>
<AssemblyName>Sql</AssemblyName>
<ModelCollation>1033,CI</ModelCollation>
<DefaultFileStructure>BySchemaAndSchemaType</DefaultFileStructure>
<DeployToDatabase>True</DeployToDatabase>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<TargetLanguage>CS</TargetLanguage>
<AppDesignerFolder>Properties</AppDesignerFolder>
<SqlServerVerification>False</SqlServerVerification>
<IncludeCompositeObjects>True</IncludeCompositeObjects>
<TargetDatabaseSet>True</TargetDatabaseSet>
<DefaultCollation>SQL_Latin1_General_CP1_CI_AS</DefaultCollation>
<DefaultFilegroup>PRIMARY</DefaultFilegroup>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>bin\Release\</OutputPath>
<BuildScriptName>$(MSBuildProjectName).sql</BuildScriptName>
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<DefineDebug>false</DefineDebug>
<DefineTrace>true</DefineTrace>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<SuppressTSqlWarnings>71502</SuppressTSqlWarnings>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
<BuildScriptName>$(MSBuildProjectName).sql</BuildScriptName>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<SuppressTSqlWarnings>71502</SuppressTSqlWarnings>
</PropertyGroup>
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">12.0</VisualStudioVersion>
<!-- Default to the v12.0 targets path if the targets file for the current VS version is not found -->
<SSDTExists Condition="Exists('$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets')">True</SSDTExists>
<VisualStudioVersion Condition="'$(SSDTExists)' == ''">12.0</VisualStudioVersion>
</PropertyGroup>
<Import Condition="'$(SQLDBExtensionsRefPath)' != ''" Project="$(SQLDBExtensionsRefPath)\Microsoft.Data.Tools.Schema.SqlTasks.targets" />
<Import Condition="'$(SQLDBExtensionsRefPath)' == ''" Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets" />
<ItemGroup>
<Folder Include="Auth\" />
<Folder Include="Auth\dbo\" />
<Folder Include="Auth\dbo\Stored Procedures\" />
<Folder Include="Auth\dbo\Tables\" />
<Folder Include="Auth\dbo\Views\" />
<Folder Include="Properties" />
<Folder Include="dbo\" />
<Folder Include="dbo\Tables\" />
<Folder Include="dbo\Views\" />
<Folder Include="dbo\Functions\" />
<Folder Include="dbo\Stored Procedures\" />
<Folder Include="dbo\User Defined Types\" />
<Folder Include="dbo\Stored Procedures\ApiKey\" />
<Folder Include="SecretsManager\" />
<Folder Include="SecretsManager\dbo\" />
<Folder Include="SecretsManager\dbo\Stored Procedures\" />
<Folder Include="SecretsManager\dbo\Stored Procedures\ApiKey\" />
<Folder Include="SecretsManager\dbo\Tables\" />
<Folder Include="SecretsManager\dbo\Views\" />
<Folder Include="Tools\" />
<Folder Include="Tools\dbo" />
<Folder Include="Tools\dbo\Tables" />
<Folder Include="Tools\dbo\Stored Procedures\" />
<Folder Include="Vault\" />
<Folder Include="Vault\dbo\" />
<Folder Include="Vault\dbo\Functions\" />
<Folder Include="Vault\dbo\Stored Procedures\" />
<Folder Include="Vault\dbo\Stored Procedures\Cipher\" />
<Folder Include="Vault\dbo\Stored Procedures\Folder\" />
<Folder Include="Vault\dbo\Tables\" />
<Folder Include="Vault\dbo\Views\" />
<Folder Include="Tools\dbo\Views\" />
</ItemGroup>
<ItemGroup>
<Build Include="Auth\dbo\Stored Procedures\AuthRequest_Create.sql" />
<Build Include="Auth\dbo\Stored Procedures\AuthRequest_DeleteById.sql" />
<Build Include="Auth\dbo\Stored Procedures\AuthRequest_DeleteIfExpired.sql" />
<Build Include="Auth\dbo\Stored Procedures\AuthRequest_ReadById.sql" />
<Build Include="Auth\dbo\Stored Procedures\AuthRequest_ReadByUserId.sql" />
<Build Include="Auth\dbo\Stored Procedures\AuthRequest_Update.sql" />
<Build Include="Auth\dbo\Stored Procedures\EmergencyAccess_Create.sql" />
<Build Include="Auth\dbo\Stored Procedures\EmergencyAccess_DeleteById.sql" />
<Build Include="Auth\dbo\Stored Procedures\EmergencyAccess_ReadById.sql" />
<Build Include="Auth\dbo\Stored Procedures\EmergencyAccess_ReadCountByGrantorIdEmail.sql" />
<Build Include="Auth\dbo\Stored Procedures\EmergencyAccess_ReadToNotify.sql" />
<Build Include="Auth\dbo\Stored Procedures\EmergencyAccess_Update.sql" />
<Build Include="Auth\dbo\Stored Procedures\EmergencyAccessDetails_ReadByGranteeId.sql" />
<Build Include="Auth\dbo\Stored Procedures\EmergencyAccessDetails_ReadByGrantorId.sql" />
<Build Include="Auth\dbo\Stored Procedures\EmergencyAccessDetails_ReadByIdGrantorId.sql" />
<Build Include="Auth\dbo\Stored Procedures\EmergencyAccessDetails_ReadExpiredRecoveries.sql" />
<Build Include="Auth\dbo\Stored Procedures\Grant_Delete.sql" />
<Build Include="Auth\dbo\Stored Procedures\Grant_DeleteByKey.sql" />
<Build Include="Auth\dbo\Stored Procedures\Grant_DeleteExpired.sql" />
<Build Include="Auth\dbo\Stored Procedures\Grant_Read.sql" />
<Build Include="Auth\dbo\Stored Procedures\Grant_ReadByKey.sql" />
<Build Include="Auth\dbo\Stored Procedures\Grant_Save.sql" />
<Build Include="Auth\dbo\Stored Procedures\SsoConfig_Create.sql" />
<Build Include="Auth\dbo\Stored Procedures\SsoConfig_DeleteById.sql" />
<Build Include="Auth\dbo\Stored Procedures\SsoConfig_ReadById.sql" />
<Build Include="Auth\dbo\Stored Procedures\SsoConfig_ReadByIdentifier.sql" />
<Build Include="Auth\dbo\Stored Procedures\SsoConfig_ReadByOrganizationId.sql" />
<Build Include="Auth\dbo\Stored Procedures\SsoConfig_ReadManyByNotBeforeRevisionDate.sql" />
<Build Include="Auth\dbo\Stored Procedures\SsoConfig_Update.sql" />
<Build Include="Auth\dbo\Stored Procedures\SsoUser_Create.sql" />
<Build Include="Auth\dbo\Stored Procedures\SsoUser_Delete.sql" />
<Build Include="Auth\dbo\Stored Procedures\SsoUser_DeleteById.sql" />
<Build Include="Auth\dbo\Stored Procedures\SsoUser_DeleteMany.sql" />
<Build Include="Auth\dbo\Stored Procedures\SsoUser_ReadById.sql" />
<Build Include="Auth\dbo\Stored Procedures\SsoUser_ReadByUserIdOrganizationId.sql" />
<Build Include="Auth\dbo\Stored Procedures\SsoUser_Update.sql" />
<Build Include="Auth\dbo\Stored Procedures\User_BumpAccountRevisionDateByEmergencyAccessGranteeId.sql" />
<Build Include="Auth\dbo\Tables\AuthRequest.sql" />
<Build Include="Auth\dbo\Tables\EmergencyAccess.sql" />
<Build Include="Auth\dbo\Tables\Grant.sql" />
<Build Include="Auth\dbo\Tables\SsoConfig.sql" />
<Build Include="Auth\dbo\Tables\SsoUser.sql" />
<Build Include="Auth\dbo\Views\AuthRequestView.sql" />
<Build Include="Auth\dbo\Views\EmergencyAccessDetailsView.sql" />
<Build Include="Auth\dbo\Views\GrantView.sql" />
<Build Include="Auth\dbo\Views\SsoConfigView.sql" />
<Build Include="Auth\dbo\Views\SsoUserView.sql" />
<Build Include="dbo\Functions\PolicyApplicableToUser.sql" />
<Build Include="dbo\Functions\UserCollectionDetails.sql" />
<Build Include="dbo\Stored Procedures\AzureSQLMaintenance.sql" />
<Build Include="dbo\Stored Procedures\CollectionCipher_Create.sql" />
<Build Include="dbo\Stored Procedures\CollectionCipher_Delete.sql" />
<Build Include="dbo\Stored Procedures\CollectionCipher_ReadByOrganizationId.sql" />
<Build Include="dbo\Stored Procedures\CollectionCipher_ReadByUserId.sql" />
<Build Include="dbo\Stored Procedures\CollectionCipher_ReadByUserIdCipherId.sql" />
<Build Include="dbo\Stored Procedures\CollectionCipher_UpdateCollections.sql" />
<Build Include="dbo\Stored Procedures\CollectionCipher_UpdateCollectionsAdmin.sql" />
<Build Include="dbo\Stored Procedures\CollectionCipher_UpdateCollectionsForCiphers.sql" />
<Build Include="dbo\Stored Procedures\CollectionGroup_ReadByCollectionId.sql" />
<Build Include="dbo\Stored Procedures\CollectionGroup_ReadByOrganizationId.sql" />
<Build Include="dbo\Stored Procedures\CollectionUser_Delete.sql" />
<Build Include="dbo\Stored Procedures\CollectionUser_ReadByCollectionId.sql" />
<Build Include="dbo\Stored Procedures\CollectionUser_ReadByOrganizationId.sql" />
<Build Include="dbo\Stored Procedures\CollectionUser_ReadByOrganizationUserIds.sql" />
<Build Include="dbo\Stored Procedures\CollectionUser_UpdateUsers.sql" />
<Build Include="dbo\Stored Procedures\Collection_Create.sql" />
<Build Include="dbo\Stored Procedures\Collection_CreateWithGroups.sql" />
<Build Include="dbo\Stored Procedures\Collection_CreateWithGroupsAndUsers.sql" />
<Build Include="dbo\Stored Procedures\Collection_DeleteById.sql" />
<Build Include="dbo\Stored Procedures\Collection_DeleteByIds.sql" />
<Build Include="dbo\Stored Procedures\Collection_ReadById.sql" />
<Build Include="dbo\Stored Procedures\Collection_ReadByIdUserId.sql" />
<Build Include="dbo\Stored Procedures\Collection_ReadByIds.sql" />
<Build Include="dbo\Stored Procedures\Collection_ReadByOrganizationId.sql" />
<Build Include="dbo\Stored Procedures\Collection_ReadByUserId.sql" />
<Build Include="dbo\Stored Procedures\Collection_ReadCountByOrganizationId.sql" />
<Build Include="dbo\Stored Procedures\Collection_ReadWithGroupsAndUsersById.sql" />
<Build Include="dbo\Stored Procedures\Collection_ReadWithGroupsAndUsersByIdUserId.sql" />
<Build Include="dbo\Stored Procedures\Collection_ReadWithGroupsAndUsersByOrganizationId.sql" />
<Build Include="dbo\Stored Procedures\Collection_ReadWithGroupsAndUsersByUserId.sql" />
<Build Include="dbo\Stored Procedures\Collection_ReadWithGroupsById.sql" />
<Build Include="dbo\Stored Procedures\Collection_ReadWithGroupsByIdUserId.sql" />
<Build Include="dbo\Stored Procedures\Collection_Update.sql" />
<Build Include="dbo\Stored Procedures\Collection_UpdateWithGroups.sql" />
<Build Include="dbo\Stored Procedures\Collection_UpdateWithGroupsAndUsers.sql" />
<Build Include="dbo\Stored Procedures\Device_ClearPushTokenById.sql" />
<Build Include="dbo\Stored Procedures\Device_Create.sql" />
<Build Include="dbo\Stored Procedures\Device_DeleteById.sql" />
<Build Include="dbo\Stored Procedures\Device_ReadById.sql" />
<Build Include="dbo\Stored Procedures\Device_ReadByIdentifier.sql" />
<Build Include="dbo\Stored Procedures\Device_ReadByIdentifierUserId.sql" />
<Build Include="dbo\Stored Procedures\Device_ReadByUserId.sql" />
<Build Include="dbo\Stored Procedures\Device_Update.sql" />
<Build Include="dbo\Stored Procedures\Event_Create.sql" />
<Build Include="dbo\Stored Procedures\Event_ReadById.sql" />
<Build Include="dbo\Stored Procedures\Event_ReadPageByCipherId.sql" />
<Build Include="dbo\Stored Procedures\Event_ReadPageByOrganizationId.sql" />
<Build Include="dbo\Stored Procedures\Event_ReadPageByOrganizationIdActingUserId.sql" />
<Build Include="dbo\Stored Procedures\Event_ReadPageByProviderId.sql" />
<Build Include="dbo\Stored Procedures\Event_ReadPageByProviderIdActingUserId.sql" />
<Build Include="dbo\Stored Procedures\Event_ReadPageByUserId.sql" />
<Build Include="dbo\Stored Procedures\GroupUser_Delete.sql" />
<Build Include="dbo\Stored Procedures\GroupUser_ReadByOrganizationId.sql" />
<Build Include="dbo\Stored Procedures\GroupUser_ReadByOrganizationUserIds.sql" />
<Build Include="dbo\Stored Procedures\GroupUser_ReadGroupIdsByOrganizationUserId.sql" />
<Build Include="dbo\Stored Procedures\GroupUser_ReadOrganizationUserIdsByGroupId.sql" />
<Build Include="dbo\Stored Procedures\GroupUser_UpdateGroups.sql" />
<Build Include="dbo\Stored Procedures\GroupUser_UpdateUsers.sql" />
<Build Include="dbo\Stored Procedures\Group_Create.sql" />
<Build Include="dbo\Stored Procedures\Group_CreateWithCollections.sql" />
<Build Include="dbo\Stored Procedures\Group_DeleteById.sql" />
<Build Include="dbo\Stored Procedures\Group_DeleteByIds.sql" />
<Build Include="dbo\Stored Procedures\Group_ReadById.sql" />
<Build Include="dbo\Stored Procedures\Group_ReadByIds.sql" />
<Build Include="dbo\Stored Procedures\Group_ReadByOrganizationId.sql" />
<Build Include="dbo\Stored Procedures\Group_ReadWithCollectionsById.sql" />
<Build Include="dbo\Stored Procedures\Group_ReadWithCollectionsByOrganizationId.sql" />
<Build Include="dbo\Stored Procedures\Group_Update.sql" />
<Build Include="dbo\Stored Procedures\Group_UpdateWithCollections.sql" />
<Build Include="dbo\Stored Procedures\Installation_Create.sql" />
<Build Include="dbo\Stored Procedures\Installation_DeleteById.sql" />
<Build Include="dbo\Stored Procedures\Installation_ReadById.sql" />
<Build Include="dbo\Stored Procedures\Installation_Update.sql" />
<Build Include="dbo\Stored Procedures\OrganizationApiKey_Create.sql" />
<Build Include="dbo\Stored Procedures\OrganizationApiKey_DeleteById.sql" />
<Build Include="dbo\Stored Procedures\OrganizationApiKey_OrganizationDeleted.sql" />
<Build Include="dbo\Stored Procedures\OrganizationApiKey_ReadManyByOrganizationIdType.sql" />
<Build Include="dbo\Stored Procedures\OrganizationApiKey_Update.sql" />
<Build Include="dbo\Stored Procedures\OrganizationConnection_Create.sql" />
<Build Include="dbo\Stored Procedures\OrganizationConnection_DeleteById.sql" />
<Build Include="dbo\Stored Procedures\OrganizationConnection_OrganizationDeleted.sql" />
<Build Include="dbo\Stored Procedures\OrganizationConnection_ReadById.sql" />
<Build Include="dbo\Stored Procedures\OrganizationConnection_ReadByOrganizationIdType.sql" />
<Build Include="dbo\Stored Procedures\OrganizationConnection_Update.sql" />
<Build Include="dbo\Stored Procedures\OrganizationSponsorship_Create.sql" />
<Build Include="dbo\Stored Procedures\OrganizationSponsorship_CreateMany.sql" />
<Build Include="dbo\Stored Procedures\OrganizationSponsorship_DeleteById.sql" />
<Build Include="dbo\Stored Procedures\OrganizationSponsorship_DeleteByIds.sql" />
<Build Include="dbo\Stored Procedures\OrganizationSponsorship_DeleteExpired.sql" />
<Build Include="dbo\Stored Procedures\OrganizationSponsorship_OrganizationDeleted.sql" />
<Build Include="dbo\Stored Procedures\OrganizationSponsorship_OrganizationUserDeleted.sql" />
<Build Include="dbo\Stored Procedures\OrganizationSponsorship_OrganizationUsersDeleted.sql" />
<Build Include="dbo\Stored Procedures\OrganizationSponsorship_ReadById.sql" />
<Build Include="dbo\Stored Procedures\OrganizationSponsorship_ReadByOfferedToEmail.sql" />
<Build Include="dbo\Stored Procedures\OrganizationSponsorship_ReadBySponsoredOrganizationId.sql" />
<Build Include="dbo\Stored Procedures\OrganizationSponsorship_ReadBySponsoringOrganiationUserId.sql" />
<Build Include="dbo\Stored Procedures\OrganizationSponsorship_ReadBySponsoringOrganizationId.sql" />
<Build Include="dbo\Stored Procedures\OrganizationSponsorship_ReadLatestBySponsoringOrganizationId.sql" />
<Build Include="dbo\Stored Procedures\OrganizationSponsorship_Update.sql" />
<Build Include="dbo\Stored Procedures\OrganizationSponsorship_UpdateMany.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUserOrganizationDetails_ReadByUserIdStatus.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUserOrganizationDetails_ReadByUserIdStatusOrganizationId.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUserUserDetails_ReadById.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUserUserDetails_ReadByOrganizationId.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUserUserDetails_ReadWithCollectionsById.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_Activate.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_Create.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_CreateMany.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_CreateMany2.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_CreateWithCollections.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_Deactivate.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_DeleteById.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_DeleteByIds.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_ReadById.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_ReadByIds.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_ReadByMinimumRole.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_ReadByOrganizationId.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_ReadByOrganizationIdEmail.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_ReadByOrganizationIdUserId.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_ReadByUserId.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_ReadByUserIds.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_ReadCountByFreeOrganizationAdminUser.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_ReadCountByOnlyOwner.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_ReadCountByOrganizationId.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_ReadCountByOrganizationIdEmail.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_ReadOccupiedSeatCountByOrganizationId.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_ReadWithCollectionsById.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_SelectKnownEmails.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_Update.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_UpdateMany.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_UpdateMany2.sql" />
<Build Include="dbo\Stored Procedures\OrganizationUser_UpdateWithCollections.sql" />
<Build Include="dbo\Stored Procedures\Organization_Create.sql" />
<Build Include="dbo\Stored Procedures\Organization_DeleteById.sql" />
<Build Include="dbo\Stored Procedures\Organization_ReadAbilities.sql" />
<Build Include="dbo\Stored Procedures\Organization_ReadByEnabled.sql" />
<Build Include="dbo\Stored Procedures\Organization_ReadById.sql" />
<Build Include="dbo\Stored Procedures\Organization_ReadByIdentifier.sql" />
<Build Include="dbo\Stored Procedures\Organization_ReadByLicenseKey.sql" />
<Build Include="dbo\Stored Procedures\Organization_ReadByProviderId.sql" />
<Build Include="dbo\Stored Procedures\Organization_ReadByUserId.sql" />
<Build Include="dbo\Stored Procedures\Organization_ReadSelfHostedDetailsById.sql" />
<Build Include="dbo\Stored Procedures\Organization_Search.sql" />
<Build Include="dbo\Stored Procedures\Organization_Update.sql" />
<Build Include="dbo\Stored Procedures\Organization_UpdateStorage.sql" />
<Build Include="dbo\Stored Procedures\Policy_CountByTypeApplicableToUser.sql" />
<Build Include="dbo\Stored Procedures\Policy_Create.sql" />
<Build Include="dbo\Stored Procedures\Policy_DeleteById.sql" />
<Build Include="dbo\Stored Procedures\Policy_ReadById.sql" />
<Build Include="dbo\Stored Procedures\Policy_ReadByOrganizationId.sql" />
<Build Include="dbo\Stored Procedures\Policy_ReadByOrganizationIdType.sql" />
<Build Include="dbo\Stored Procedures\Policy_ReadByTypeApplicableToUser.sql" />
<Build Include="dbo\Stored Procedures\Policy_ReadByUserId.sql" />
<Build Include="dbo\Stored Procedures\Policy_Update.sql" />
<Build Include="dbo\Stored Procedures\ProviderOrganizationOrganizationDetails_ReadByProviderId.sql" />
<Build Include="dbo\Stored Procedures\ProviderOrganizationProviderDetails_ReadByUserId.sql" />
<Build Include="dbo\Stored Procedures\ProviderOrganization_ReadCountByOrganizationIds.sql" />
<Build Include="dbo\Stored Procedures\Provider_ReadByOrganizationId.sql" />
<Build Include="dbo\Stored Procedures\Organization_UnassignedToProviderSearch.sql" />
<Build Include="dbo\Stored Procedures\ProviderOrganization_Create.sql" />
<Build Include="dbo\Stored Procedures\ProviderOrganization_DeleteById.sql" />
<Build Include="dbo\Stored Procedures\ProviderOrganization_ReadById.sql" />
<Build Include="dbo\Stored Procedures\ProviderOrganization_ReadByOrganizationId.sql" />
<Build Include="dbo\Stored Procedures\ProviderOrganization_Update.sql" />
<Build Include="dbo\Stored Procedures\ProviderUserProviderDetails_ReadByUserIdStatus.sql" />
<Build Include="dbo\Stored Procedures\ProviderUserProviderOrganizationDetails_ReadByUserIdStatus.sql" />
<Build Include="dbo\Stored Procedures\ProviderUserUserDetails_ReadByProviderId.sql" />
<Build Include="dbo\Stored Procedures\ProviderUser_Create.sql" />
<Build Include="dbo\Stored Procedures\ProviderUser_DeleteById.sql" />
<Build Include="dbo\Stored Procedures\ProviderUser_DeleteByIds.sql" />
<Build Include="dbo\Stored Procedures\ProviderUser_ReadById.sql" />
<Build Include="dbo\Stored Procedures\ProviderUser_ReadByIds.sql" />
<Build Include="dbo\Stored Procedures\ProviderUser_ReadByProviderId.sql" />
<Build Include="dbo\Stored Procedures\ProviderUser_ReadByProviderIdUserId.sql" />
<Build Include="dbo\Stored Procedures\ProviderUser_ReadByUserId.sql" />
<Build Include="dbo\Stored Procedures\ProviderUser_ReadCountByOnlyOwner.sql" />
<Build Include="dbo\Stored Procedures\ProviderUser_ReadCountByProviderIdEmail.sql" />
<Build Include="dbo\Stored Procedures\ProviderUser_Update.sql" />
<Build Include="dbo\Stored Procedures\Provider_Create.sql" />
<Build Include="dbo\Stored Procedures\Provider_DeleteById.sql" />
<Build Include="dbo\Stored Procedures\Provider_ReadAbilities.sql" />
<Build Include="dbo\Stored Procedures\Provider_ReadById.sql" />
<Build Include="dbo\Stored Procedures\Provider_Search.sql" />
<Build Include="dbo\Stored Procedures\Provider_Update.sql" />
<Build Include="dbo\Stored Procedures\TaxRate_Archive.sql" />
<Build Include="dbo\Stored Procedures\TaxRate_Create.sql" />
<Build Include="dbo\Stored Procedures\TaxRate_ReadAllActive.sql" />
<Build Include="dbo\Stored Procedures\TaxRate_ReadById.sql" />
<Build Include="dbo\Stored Procedures\TaxRate_ReadByLocation.sql" />
<Build Include="dbo\Stored Procedures\TaxRate_Search.sql" />
<Build Include="dbo\Stored Procedures\Transaction_Create.sql" />
<Build Include="dbo\Stored Procedures\Transaction_DeleteById.sql" />
<Build Include="dbo\Stored Procedures\Transaction_ReadByGatewayId.sql" />
<Build Include="dbo\Stored Procedures\Transaction_ReadById.sql" />
<Build Include="dbo\Stored Procedures\Transaction_ReadByOrganizationId.sql" />
<Build Include="dbo\Stored Procedures\Transaction_ReadByUserId.sql" />
<Build Include="dbo\Stored Procedures\Transaction_Update.sql" />
<Build Include="dbo\Stored Procedures\User_BumpAccountRevisionDate.sql" />
<Build Include="dbo\Stored Procedures\User_BumpAccountRevisionDateByCipherId.sql" />
<Build Include="dbo\Stored Procedures\User_BumpAccountRevisionDateByCollectionId.sql" />
<Build Include="dbo\Stored Procedures\User_BumpAccountRevisionDateByOrganizationId.sql" />
<Build Include="dbo\Stored Procedures\User_BumpAccountRevisionDateByOrganizationIds.sql" />
<Build Include="dbo\Stored Procedures\User_BumpAccountRevisionDateByOrganizationUserId.sql" />
<Build Include="dbo\Stored Procedures\User_BumpAccountRevisionDateByOrganizationUserIds.sql" />
<Build Include="dbo\Stored Procedures\User_BumpAccountRevisionDateByProviderId.sql" />
<Build Include="dbo\Stored Procedures\User_BumpAccountRevisionDateByProviderUserId.sql" />
<Build Include="dbo\Stored Procedures\User_BumpAccountRevisionDateByProviderUserIds.sql" />
<Build Include="dbo\Stored Procedures\User_BumpManyAccountRevisionDates.sql" />
<Build Include="dbo\Stored Procedures\User_Create.sql" />
<Build Include="dbo\Stored Procedures\User_DeleteById.sql" />
<Build Include="dbo\Stored Procedures\User_ReadAccountRevisionDateById.sql" />
<Build Include="dbo\Stored Procedures\User_ReadByEmail.sql" />
<Build Include="dbo\Stored Procedures\User_ReadById.sql" />
<Build Include="dbo\Stored Procedures\User_ReadByIds.sql" />
<Build Include="dbo\Stored Procedures\User_ReadByPremium.sql" />
<Build Include="dbo\Stored Procedures\User_ReadBySsoUserOrganizationIdExternalId.sql" />
<Build Include="dbo\Stored Procedures\User_ReadKdfByEmail.sql" />
<Build Include="dbo\Stored Procedures\User_ReadPublicKeyById.sql" />
<Build Include="dbo\Stored Procedures\User_ReadPublicKeysByOrganizationUserIds.sql" />
<Build Include="dbo\Stored Procedures\User_ReadPublicKeysByProviderUserIds.sql" />
<Build Include="dbo\Stored Procedures\User_Search.sql" />
<Build Include="dbo\Stored Procedures\User_Update.sql" />
<Build Include="dbo\Stored Procedures\User_UpdateKeys.sql" />
<Build Include="dbo\Stored Procedures\User_UpdateRenewalReminderDate.sql" />
<Build Include="dbo\Stored Procedures\User_UpdateStorage.sql" />
<Build Include="dbo\Tables\Collection.sql" />
<Build Include="dbo\Tables\CollectionCipher.sql" />
<Build Include="dbo\Tables\CollectionGroup.sql" />
<Build Include="dbo\Tables\CollectionUser.sql" />
<Build Include="dbo\Tables\Device.sql" />
<Build Include="dbo\Tables\Event.sql" />
<Build Include="dbo\Tables\Group.sql" />
<Build Include="dbo\Tables\GroupUser.sql" />
<Build Include="dbo\Tables\Installation.sql" />
<Build Include="dbo\Tables\Organization.sql" />
<Build Include="dbo\Tables\OrganizationApiKey.sql" />
<Build Include="dbo\Tables\OrganizationConnection.sql" />
<Build Include="dbo\Tables\OrganizationSponsorship.sql" />
<Build Include="dbo\Tables\OrganizationUser.sql" />
<Build Include="dbo\Tables\Policy.sql" />
<Build Include="dbo\Tables\Provider.sql" />
<Build Include="dbo\Tables\ProviderOrganization.sql" />
<Build Include="dbo\Tables\ProviderUser.sql" />
<Build Include="dbo\Tables\TaxRate.sql" />
<Build Include="dbo\Tables\Transaction.sql" />
<Build Include="dbo\Tables\User.sql" />
<Build Include="dbo\User Defined Types\EmailArray.sql" />
<Build Include="dbo\User Defined Types\GuidIdArray.sql" />
<Build Include="dbo\User Defined Types\OrganizationSponsorshipType.sql" />
<Build Include="dbo\User Defined Types\OrganizationUserType.sql" />
<Build Include="dbo\User Defined Types\OrganizationUserType2.sql" />
<Build Include="dbo\User Defined Types\SelectionReadOnlyArray.sql" />
<Build Include="dbo\User Defined Types\TwoGuidIdArray.sql" />
<Build Include="dbo\Views\CollectionView.sql" />
<Build Include="dbo\Views\DeviceView.sql" />
<Build Include="dbo\Views\EventView.sql" />
<Build Include="dbo\Views\GroupView.sql" />
<Build Include="dbo\Views\InstallationView.sql" />
<Build Include="dbo\Views\OrganizationApiKeyView.sql" />
<Build Include="dbo\Views\OrganizationConnectionView.sql" />
<Build Include="dbo\Views\OrganizationSponsorship.sql" />
<Build Include="dbo\Views\OrganizationUserOrganizationDetailsView.sql" />
<Build Include="dbo\Views\OrganizationUserUserDetailsView.sql" />
<Build Include="dbo\Views\OrganizationUserView.sql" />
<Build Include="dbo\Views\OrganizationView.sql" />
<Build Include="dbo\Views\PolicyView.sql" />
<Build Include="dbo\Views\ProviderOrganizationOrganizationDetailsView.sql" />
<Build Include="dbo\Views\ProviderOrganizationView.sql" />
<Build Include="dbo\Views\ProviderUserProviderDetailsView.sql" />
<Build Include="dbo\Views\ProviderUserProviderOrganizationDetailsView.sql" />
<Build Include="dbo\Views\ProviderUserUserDetailsView.sql" />
<Build Include="dbo\Views\ProviderUserView.sql" />
<Build Include="dbo\Views\ProviderView.sql" />
<Build Include="dbo\Views\TransactionView.sql" />
<Build Include="dbo\Views\UserView.sql" />
<Build Include="SecretsManager\dbo\Stored Procedures\ApiKey\ApiKeyDetails_ReadById.sql" />
<Build Include="SecretsManager\dbo\Stored Procedures\ApiKey\ApiKey_Create.sql" />
<Build Include="SecretsManager\dbo\Stored Procedures\ApiKey\ApiKey_DeleteByIds.sql" />
<Build Include="SecretsManager\dbo\Stored Procedures\ApiKey\ApiKey_ReadByServiceAccountId.sql" />
<Build Include="SecretsManager\dbo\Tables\AccessPolicy.sql" />
<Build Include="SecretsManager\dbo\Tables\ApiKey.sql" />
<Build Include="SecretsManager\dbo\Tables\Project.sql" />
<Build Include="SecretsManager\dbo\Tables\ProjectSecret.sql" />
<Build Include="SecretsManager\dbo\Tables\Secret.sql" />
<Build Include="SecretsManager\dbo\Tables\ServiceAccount.sql" />
<Build Include="SecretsManager\dbo\Views\ApiKeyDetailsView.sql" />
<Build Include="SecretsManager\dbo\Views\ApiKeyView.sql" />
<Build Include="Tools\dbo\Stored Procedures\Send_Create.sql" />
<Build Include="Tools\dbo\Stored Procedures\Send_DeleteById.sql" />
<Build Include="Tools\dbo\Stored Procedures\Send_ReadByDeletionDateBefore.sql" />
<Build Include="Tools\dbo\Stored Procedures\Send_ReadById.sql" />
<Build Include="Tools\dbo\Stored Procedures\Send_ReadByUserId.sql" />
<Build Include="Tools\dbo\Stored Procedures\Send_Update.sql" />
<Build Include="Tools\dbo\Tables\Send.sql" />
<Build Include="Tools\dbo\Views\SendView.sql" />
<Build Include="Vault\dbo\Functions\CipherDetails.sql" />
<Build Include="Vault\dbo\Functions\UserCipherDetails.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\CipherDetails_Create.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\CipherDetails_CreateWithCollections.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\CipherDetails_ReadByIdUserId.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\CipherDetails_ReadByUserId.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\CipherDetails_ReadWithoutOrganizationsByUserId.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\CipherDetails_Update.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\CipherOrganizationDetails_ReadById.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\CipherOrganizationDetails_ReadByOrganizationId.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\Cipher_Create.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\Cipher_CreateWithCollections.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\Cipher_Delete.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\Cipher_DeleteAttachment.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\Cipher_DeleteById.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\Cipher_DeleteByIdsOrganizationId.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\Cipher_DeleteByOrganizationId.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\Cipher_DeleteByUserId.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\Cipher_DeleteDeleted.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\Cipher_Move.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\Cipher_ReadById.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\Cipher_ReadByOrganizationId.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\Cipher_ReadCanEditByIdUserId.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\Cipher_Restore.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\Cipher_SoftDelete.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\Cipher_SoftDeleteByIdsOrganizationId.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\Cipher_Update.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\Cipher_UpdateAttachment.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\Cipher_UpdateCollections.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\Cipher_UpdatePartial.sql" />
<Build Include="Vault\dbo\Stored Procedures\Cipher\Cipher_UpdateWithCollections.sql" />
<Build Include="Vault\dbo\Stored Procedures\Folder\Folder_Create.sql" />
<Build Include="Vault\dbo\Stored Procedures\Folder\Folder_DeleteById.sql" />
<Build Include="Vault\dbo\Stored Procedures\Folder\Folder_ReadById.sql" />
<Build Include="Vault\dbo\Stored Procedures\Folder\Folder_ReadByUserId.sql" />
<Build Include="Vault\dbo\Stored Procedures\Folder\Folder_Update.sql" />
<Build Include="Vault\dbo\Tables\Cipher.sql" />
<Build Include="Vault\dbo\Tables\Folder.sql" />
<Build Include="Vault\dbo\Views\CipherView.sql" />
<Build Include="Vault\dbo\Views\FolderView.sql" />
</ItemGroup>
<ItemGroup>
<Content Include="dbo\Stored Procedures\OrganizationDomain_Create.sql" />
<Content Include="dbo\Stored Procedures\OrganizationDomain_DeleteById.sql" />
<Content Include="dbo\Stored Procedures\OrganizationDomain_DeleteIfExpired.sql" />
<Content Include="dbo\Stored Procedures\OrganizationDomain_OrganizationDeleted.sql" />
<Content Include="dbo\Stored Procedures\OrganizationDomain_ReadByClaimedDomain.sql" />
<Content Include="dbo\Stored Procedures\OrganizationDomain_ReadByNextRunDate.sql" />
<Content Include="dbo\Stored Procedures\OrganizationDomain_ReadById.sql" />
<Content Include="dbo\Stored Procedures\OrganizationDomain_ReadByOrganizationId.sql" />
<Content Include="dbo\Stored Procedures\OrganizationDomain_ReadDomainByOrgIdAndDomainName.sql" />
<Content Include="dbo\Stored Procedures\OrganizationDomain_ReadIfExpired.sql" />
<Content Include="dbo\Stored Procedures\OrganizationDomain_Update.sql" />
<Content Include="dbo\Stored Procedures\OrganizationDomainSsoDetails_ReadByEmail.sql" />
<Content Include="dbo\Tables\OrganizationDomain.sql" />
<Content Include="dbo\Views\OrganizationDomainView.sql" />
<Build Remove="dbo_future/**/*"/>
</ItemGroup>
</Project>

View File

@ -20,9 +20,9 @@ BEGIN
[DomainName] = @DomainName,
[CreationDate] = @CreationDate,
[VerifiedDate] = @VerifiedDate,
[LastCheckedDate] = @LastCheckedDate
[LastCheckedDate] = @LastCheckedDate,
[NextRunDate] = @NextRunDate,
[JobRunCount] = @JobRunCount
WHERE
[Id] = @Id
END
END

View File

@ -0,0 +1,21 @@
{
"version": 1,
"dependencies": {
".NETFramework,Version=v4.6": {
"Microsoft.NETFramework.ReferenceAssemblies": {
"type": "Direct",
"requested": "[1.0.0, )",
"resolved": "1.0.0",
"contentHash": "7D2TMufjGiowmt0E941kVoTIS+GTNzaPopuzM1/1LSaJAdJdBrVP0SkZW7AgDd0a2U1DjsIeaKG1wxGVBNLDMw==",
"dependencies": {
"Microsoft.NETFramework.ReferenceAssemblies.net46": "1.0.0"
}
},
"Microsoft.NETFramework.ReferenceAssemblies.net46": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "Zhtz+rFItjyGS3jMl9F011VJYLKyW6hwEUMsH/KfM2w0YrxoeFc8gO9iaOxCdN+bJFs/p2a+kHF1vNJ4y2+LfQ=="
}
}
}
}