Skip to content

Commit

Permalink
changed type from Text to Varchar(MAX) on database, updated version
Browse files Browse the repository at this point in the history
  • Loading branch information
davidegironi committed May 17, 2020
1 parent c8145b0 commit d03d159
Show file tree
Hide file tree
Showing 14 changed files with 37 additions and 37 deletions.
Binary file modified DentneD/Properties/AssemblyInfo.cs
Binary file not shown.
Binary file modified DentneDHelpers.Test/Properties/AssemblyInfo.cs
Binary file not shown.
Binary file modified DentneDHelpers/Properties/AssemblyInfo.cs
Binary file not shown.
Binary file modified DentneDModel.Test/Properties/AssemblyInfo.cs
Binary file not shown.
24 changes: 12 additions & 12 deletions DentneDModel/Entity/Model_dentned.edmx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<Property Name="appointments_from" Type="datetime" Nullable="false" />
<Property Name="appointments_to" Type="datetime" Nullable="false" />
<Property Name="appointments_title" Type="varchar" MaxLength="128" Nullable="false" />
<Property Name="appointments_notes" Type="text" />
<Property Name="appointments_notes" Type="varchar(max)" />
<Property Name="appointments_color" Type="char" MaxLength="7" />
</EntityType>
<EntityType Name="computedlines">
Expand Down Expand Up @@ -159,7 +159,7 @@
<Property Name="patients_birthdate" Type="date" Nullable="false" />
<Property Name="patients_birthcity" Type="varchar" MaxLength="64" Nullable="false" />
<Property Name="patients_doctext" Type="varchar" MaxLength="512" Nullable="false" />
<Property Name="patients_notes" Type="text" />
<Property Name="patients_notes" Type="varchar(max)" />
<Property Name="patients_isarchived" Type="bit" Nullable="false" />
<Property Name="patients_username" Type="varchar" MaxLength="8" Nullable="false" />
<Property Name="patients_password" Type="varchar" MaxLength="6" Nullable="false" />
Expand Down Expand Up @@ -188,7 +188,7 @@
<Property Name="patientsattachments_value" Type="varchar" MaxLength="128" Nullable="false" />
<Property Name="patientsattachments_date" Type="date" Nullable="false" />
<Property Name="patientsattachments_filename" Type="varchar" MaxLength="64" />
<Property Name="patientsattachments_note" Type="text" />
<Property Name="patientsattachments_note" Type="varchar(max)" />
</EntityType>
<EntityType Name="patientsattachmentstypes">
<Key>
Expand All @@ -206,7 +206,7 @@
<Property Name="patients_id" Type="int" Nullable="false" />
<Property Name="patientsattributestypes_id" Type="int" Nullable="false" />
<Property Name="patientsattributes_value" Type="varchar" MaxLength="512" />
<Property Name="patientsattributes_note" Type="text" />
<Property Name="patientsattributes_note" Type="varchar(max)" />
</EntityType>
<EntityType Name="patientsattributestypes">
<Key>
Expand All @@ -223,7 +223,7 @@
<Property Name="patients_id" Type="int" Nullable="false" />
<Property Name="contactstypes_id" Type="int" Nullable="false" />
<Property Name="patientscontacts_value" Type="varchar" MaxLength="256" Nullable="false" />
<Property Name="patientscontacts_note" Type="text" />
<Property Name="patientscontacts_note" Type="varchar(max)" />
</EntityType>
<EntityType Name="patientsmedicalrecords">
<Key>
Expand All @@ -233,7 +233,7 @@
<Property Name="patients_id" Type="int" Nullable="false" />
<Property Name="medicalrecordstypes_id" Type="int" Nullable="false" />
<Property Name="patientsmedicalrecords_value" Type="varchar" MaxLength="128" />
<Property Name="patientsmedicalrecords_note" Type="text" />
<Property Name="patientsmedicalrecords_note" Type="varchar(max)" />
</EntityType>
<EntityType Name="patientsnotes">
<Key>
Expand All @@ -242,7 +242,7 @@
<Property Name="patientsnotes_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="patients_id" Type="int" Nullable="false" />
<Property Name="patientsnotes_date" Type="date" Nullable="false" />
<Property Name="patientsnotes_text" Type="text" Nullable="false" />
<Property Name="patientsnotes_text" Type="varchar(max)" Nullable="false" />
</EntityType>
<EntityType Name="patientstreatments">
<Key>
Expand All @@ -259,7 +259,7 @@
<Property Name="patientstreatments_isunitprice" Type="bit" Nullable="false" />
<Property Name="patientstreatments_taxrate" Type="decimal" Precision="10" Scale="2" Nullable="false" />
<Property Name="patientstreatments_description" Type="varchar" MaxLength="128" />
<Property Name="patientstreatments_notes" Type="text" />
<Property Name="patientstreatments_notes" Type="varchar(max)" />
<Property Name="patientstreatments_expirationdate" Type="date" />
<Property Name="patientstreatments_t11" Type="bit" Nullable="false" />
<Property Name="patientstreatments_t12" Type="bit" Nullable="false" />
Expand Down Expand Up @@ -302,7 +302,7 @@
<Property Name="patients_id" Type="int" Nullable="false" />
<Property Name="payments_date" Type="date" Nullable="false" />
<Property Name="payments_amount" Type="decimal" Precision="10" Scale="2" Nullable="false" />
<Property Name="payments_notes" Type="text" />
<Property Name="payments_notes" Type="varchar(max)" />
</EntityType>
<EntityType Name="paymentstypes">
<Key>
Expand All @@ -319,8 +319,8 @@
</Key>
<Property Name="reports_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="reports_name" Type="varchar" MaxLength="64" Nullable="false" />
<Property Name="reports_query" Type="text" Nullable="false" />
<Property Name="reports_infotext" Type="text" />
<Property Name="reports_query" Type="varchar(max)" Nullable="false" />
<Property Name="reports_infotext" Type="varchar(max)" />
<Property Name="reports_ispasswordprotected" Type="bit" Nullable="false" />
</EntityType>
<EntityType Name="rooms">
Expand Down Expand Up @@ -371,7 +371,7 @@
<Property Name="treatments_price" Type="decimal" Precision="10" Scale="2" Nullable="false" />
<Property Name="treatments_isunitprice" Type="bit" Nullable="false" />
<Property Name="treatments_mexpiration" Type="tinyint" />
<Property Name="treatments_notes" Type="text" />
<Property Name="treatments_notes" Type="varchar(max)" />
</EntityType>
<EntityType Name="treatmentsprices">
<Key>
Expand Down
24 changes: 12 additions & 12 deletions DentneDModel/Entity/Model_dentned.edmx.diagram
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,32 @@
<!-- Diagram content (shape and connector positions) -->
<edmx:Diagrams>
<Diagram DiagramId="78dc419be0c8474fa514e35383135c72" Name="Diagram1">
<EntityTypeShape EntityType="dentnedModel.addressestypes" Width="1.5" PointX="3" PointY="22.5" />
<EntityTypeShape EntityType="dentnedModel.appointments" Width="1.5" PointX="5.25" PointY="29.625" />
<EntityTypeShape EntityType="dentnedModel.addressestypes" Width="1.5" PointX="3" PointY="38.5" />
<EntityTypeShape EntityType="dentnedModel.appointments" Width="1.5" PointX="8.25" PointY="37.625" />
<EntityTypeShape EntityType="dentnedModel.computedlines" Width="1.5" PointX="3.75" PointY="16.5" />
<EntityTypeShape EntityType="dentnedModel.contactstypes" Width="1.5" PointX="6" PointY="45.5" />
<EntityTypeShape EntityType="dentnedModel.contactstypes" Width="1.5" PointX="6" PointY="42.5" />
<EntityTypeShape EntityType="dentnedModel.doctors" Width="1.5" PointX="6" PointY="17.625" />
<EntityTypeShape EntityType="dentnedModel.estimates" Width="1.5" PointX="5.25" PointY="34" />
<EntityTypeShape EntityType="dentnedModel.estimatesfooters" Width="1.5" PointX="0.75" PointY="0.75" />
<EntityTypeShape EntityType="dentnedModel.estimateslines" Width="1.5" PointX="13.5" PointY="32.75" />
<EntityTypeShape EntityType="dentnedModel.invoices" Width="1.5" PointX="8.25" PointY="24" />
<EntityTypeShape EntityType="dentnedModel.invoicesfooters" Width="1.5" PointX="2.75" PointY="0.75" />
<EntityTypeShape EntityType="dentnedModel.invoiceslines" Width="1.5" PointX="13.5" PointY="28.75" />
<EntityTypeShape EntityType="dentnedModel.medicalrecordstypes" Width="1.5" PointX="6" PointY="39.5" />
<EntityTypeShape EntityType="dentnedModel.medicalrecordstypes" Width="1.5" PointX="3" PointY="22.5" />
<EntityTypeShape EntityType="dentnedModel.patients" Width="1.5" PointX="3" PointY="28.25" />
<EntityTypeShape EntityType="dentnedModel.patientsaddresses" Width="1.5" PointX="5.25" PointY="21.875" />
<EntityTypeShape EntityType="dentnedModel.patientsaddresses" Width="1.5" PointX="5.25" PointY="29.875" />
<EntityTypeShape EntityType="dentnedModel.patientsattachments" Width="1.5" PointX="5.25" PointY="25.875" />
<EntityTypeShape EntityType="dentnedModel.patientsattachmentstypes" Width="1.5" PointX="3" PointY="35.375" />
<EntityTypeShape EntityType="dentnedModel.patientsattributes" Width="1.5" PointX="8.25" PointY="34.125" />
<EntityTypeShape EntityType="dentnedModel.patientsattributestypes" Width="1.5" PointX="6" PointY="42.5" />
<EntityTypeShape EntityType="dentnedModel.patientscontacts" Width="1.5" PointX="8.25" PointY="38.125" />
<EntityTypeShape EntityType="dentnedModel.patientsmedicalrecords" Width="1.5" PointX="8.25" PointY="30.125" />
<EntityTypeShape EntityType="dentnedModel.patientsnotes" Width="1.5" PointX="5.25" PointY="74" />
<EntityTypeShape EntityType="dentnedModel.patientsattributes" Width="1.5" PointX="8.25" PointY="30.125" />
<EntityTypeShape EntityType="dentnedModel.patientsattributestypes" Width="1.5" PointX="6" PointY="39.5" />
<EntityTypeShape EntityType="dentnedModel.patientscontacts" Width="1.5" PointX="8.25" PointY="34.125" />
<EntityTypeShape EntityType="dentnedModel.patientsmedicalrecords" Width="1.5" PointX="5.25" PointY="22.125" />
<EntityTypeShape EntityType="dentnedModel.patientsnotes" Width="1.5" PointX="5.25" PointY="71.125" />
<EntityTypeShape EntityType="dentnedModel.patientstreatments" Width="1.5" PointX="11.25" PointY="26" />
<EntityTypeShape EntityType="dentnedModel.payments" Width="1.5" PointX="5.25" PointY="71.125" />
<EntityTypeShape EntityType="dentnedModel.payments" Width="1.5" PointX="5.25" PointY="73.875" />
<EntityTypeShape EntityType="dentnedModel.paymentstypes" Width="1.5" PointX="0.75" PointY="3.75" />
<EntityTypeShape EntityType="dentnedModel.reports" Width="1.5" PointX="2.75" PointY="3.75" />
<EntityTypeShape EntityType="dentnedModel.rooms" Width="1.5" PointX="3" PointY="38.375" />
<EntityTypeShape EntityType="dentnedModel.rooms" Width="1.5" PointX="6" PointY="45.375" />
<EntityTypeShape EntityType="dentnedModel.sysdiagrams" Width="1.5" PointX="4.75" PointY="0.75" />
<EntityTypeShape EntityType="dentnedModel.taxes" Width="1.5" PointX="1.5" PointY="16.5" />
<EntityTypeShape EntityType="dentnedModel.taxesdeductions" Width="1.5" PointX="4.75" PointY="3.75" />
Expand Down
Binary file modified DentneDModel/Properties/AssemblyInfo.cs
Binary file not shown.
Binary file modified DentneDPopulateTestDatabase/Properties/AssemblyInfo.cs
Binary file not shown.
Binary file modified DentneDPrintModel01/Properties/AssemblyInfo.cs
Binary file not shown.
Binary file modified DentneDPrintModelDefault/Properties/AssemblyInfo.cs
Binary file not shown.
Binary file modified DentneDSer/Properties/AssemblyInfo.cs
Binary file not shown.
24 changes: 12 additions & 12 deletions _DBDump/dentned-schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ CREATE TABLE [dbo].[appointments](
[appointments_from] [datetime] NOT NULL,
[appointments_to] [datetime] NOT NULL,
[appointments_title] [varchar](128) COLLATE Latin1_General_CI_AS NOT NULL,
[appointments_notes] [text] COLLATE Latin1_General_CI_AS NULL,
[appointments_notes] [varchar](max) COLLATE Latin1_General_CI_AS NULL,
[appointments_color] [char](7) COLLATE Latin1_General_CI_AS NULL,
CONSTRAINT [PK_appointments] PRIMARY KEY CLUSTERED
(
Expand Down Expand Up @@ -287,7 +287,7 @@ CREATE TABLE [dbo].[patients](
[patients_birthdate] [date] NOT NULL,
[patients_birthcity] [varchar](64) COLLATE Latin1_General_CI_AS NOT NULL,
[patients_doctext] [varchar](512) COLLATE Latin1_General_CI_AS NOT NULL,
[patients_notes] [text] COLLATE Latin1_General_CI_AS NULL,
[patients_notes] [varchar](max) COLLATE Latin1_General_CI_AS NULL,
[patients_isarchived] [bit] NOT NULL,
[patients_username] [varchar](8) COLLATE Latin1_General_CI_AS NOT NULL,
[patients_password] [varchar](6) COLLATE Latin1_General_CI_AS NOT NULL,
Expand Down Expand Up @@ -330,7 +330,7 @@ CREATE TABLE [dbo].[patientsattachments](
[patientsattachments_value] [varchar](128) COLLATE Latin1_General_CI_AS NOT NULL,
[patientsattachments_date] [date] NOT NULL,
[patientsattachments_filename] [varchar](64) COLLATE Latin1_General_CI_AS NULL,
[patientsattachments_note] [text] COLLATE Latin1_General_CI_AS NULL,
[patientsattachments_note] [varchar](max) COLLATE Latin1_General_CI_AS NULL,
CONSTRAINT [PK_patientsattachments] PRIMARY KEY CLUSTERED
(
[patientsattachments_id] ASC
Expand Down Expand Up @@ -362,7 +362,7 @@ CREATE TABLE [dbo].[patientsattributes](
[patients_id] [int] NOT NULL,
[patientsattributestypes_id] [int] NOT NULL,
[patientsattributes_value] [varchar](512) COLLATE Latin1_General_CI_AS NULL,
[patientsattributes_note] [text] COLLATE Latin1_General_CI_AS NULL,
[patientsattributes_note] [varchar](max) COLLATE Latin1_General_CI_AS NULL,
CONSTRAINT [PK_patientsattributes] PRIMARY KEY CLUSTERED
(
[patientsattributes_id] ASC
Expand Down Expand Up @@ -393,7 +393,7 @@ CREATE TABLE [dbo].[patientscontacts](
[patients_id] [int] NOT NULL,
[contactstypes_id] [int] NOT NULL,
[patientscontacts_value] [varchar](256) COLLATE Latin1_General_CI_AS NOT NULL,
[patientscontacts_note] [text] COLLATE Latin1_General_CI_AS NULL,
[patientscontacts_note] [varchar](max) COLLATE Latin1_General_CI_AS NULL,
CONSTRAINT [PK_patientscontacts] PRIMARY KEY CLUSTERED
(
[patientscontacts_id] ASC
Expand All @@ -410,7 +410,7 @@ CREATE TABLE [dbo].[patientsmedicalrecords](
[patients_id] [int] NOT NULL,
[medicalrecordstypes_id] [int] NOT NULL,
[patientsmedicalrecords_value] [varchar](128) COLLATE Latin1_General_CI_AS NULL,
[patientsmedicalrecords_note] [text] COLLATE Latin1_General_CI_AS NULL,
[patientsmedicalrecords_note] [varchar](max) COLLATE Latin1_General_CI_AS NULL,
CONSTRAINT [PK_patientsmedicalrecords] PRIMARY KEY CLUSTERED
(
[patientsmedicalrecords_id] ASC
Expand All @@ -426,7 +426,7 @@ CREATE TABLE [dbo].[patientsnotes](
[patientsnotes_id] [int] IDENTITY(1,1) NOT NULL,
[patients_id] [int] NOT NULL,
[patientsnotes_date] [date] NOT NULL,
[patientsnotes_text] [text] COLLATE Latin1_General_CI_AS NOT NULL,
[patientsnotes_text] [varchar](max) COLLATE Latin1_General_CI_AS NOT NULL,
CONSTRAINT [PK_patientsnotes] PRIMARY KEY CLUSTERED
(
[patientsnotes_id] ASC
Expand All @@ -450,7 +450,7 @@ CREATE TABLE [dbo].[patientstreatments](
[patientstreatments_isunitprice] [bit] NOT NULL,
[patientstreatments_taxrate] [decimal](10, 2) NOT NULL,
[patientstreatments_description] [varchar](128) COLLATE Latin1_General_CI_AS NULL,
[patientstreatments_notes] [text] COLLATE Latin1_General_CI_AS NULL,
[patientstreatments_notes] [varchar](max) COLLATE Latin1_General_CI_AS NULL,
[patientstreatments_expirationdate] [date] NULL,
[patientstreatments_t11] [bit] NOT NULL,
[patientstreatments_t12] [bit] NOT NULL,
Expand Down Expand Up @@ -500,7 +500,7 @@ CREATE TABLE [dbo].[payments](
[patients_id] [int] NOT NULL,
[payments_date] [date] NOT NULL,
[payments_amount] [decimal](10, 2) NOT NULL,
[payments_notes] [text] COLLATE Latin1_General_CI_AS NULL,
[payments_notes] [varchar](max) COLLATE Latin1_General_CI_AS NULL,
CONSTRAINT [PK_payments] PRIMARY KEY CLUSTERED
(
[payments_id] ASC
Expand Down Expand Up @@ -531,8 +531,8 @@ BEGIN
CREATE TABLE [dbo].[reports](
[reports_id] [int] IDENTITY(1,1) NOT NULL,
[reports_name] [varchar](64) COLLATE Latin1_General_CI_AS NOT NULL,
[reports_query] [text] COLLATE Latin1_General_CI_AS NOT NULL,
[reports_infotext] [text] COLLATE Latin1_General_CI_AS NULL,
[reports_query] [varchar](max) COLLATE Latin1_General_CI_AS NOT NULL,
[reports_infotext] [varchar](max) COLLATE Latin1_General_CI_AS NULL,
[reports_ispasswordprotected] [bit] NOT NULL CONSTRAINT [DF_reports_reports_ispasswordprotected] DEFAULT ((0)),
CONSTRAINT [PK_reports] PRIMARY KEY CLUSTERED
(
Expand Down Expand Up @@ -623,7 +623,7 @@ CREATE TABLE [dbo].[treatments](
[treatments_price] [decimal](10, 2) NOT NULL,
[treatments_isunitprice] [bit] NOT NULL,
[treatments_mexpiration] [tinyint] NULL,
[treatments_notes] [text] COLLATE Latin1_General_CI_AS NULL,
[treatments_notes] [varchar](max) COLLATE Latin1_General_CI_AS NULL,
CONSTRAINT [PK_treatments] PRIMARY KEY CLUSTERED
(
[treatments_id] ASC
Expand Down
Binary file modified _DBDump/dentned.bak
Binary file not shown.
2 changes: 1 addition & 1 deletion _DevTools/AutoBuilder.config.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ $solutionName = "DentneD"
$versionMajor = "1"
$versionMinor = "1"
$versionBuild = GetVersionBuild
$versionRevision = "15"
$versionRevision = "16"
#build version number
$assemblyVersion = GetVersion $versionMajor $versionMinor $versionBuild $versionRevision
$fileVersion = $assemblyVersion
Expand Down

0 comments on commit d03d159

Please sign in to comment.