From 46a5c99d5ee3fbe0403b86573bab741fe9805fb1 Mon Sep 17 00:00:00 2001 From: Mark <markh@rris.com.au> Date: Sat, 16 Jul 2016 13:14:42 -0600 Subject: [PATCH] Updated database project to include new views and updated components table --- DB/altium_library/Tables/Components.sql | 13 +++++ DB/altium_library/Views/Connector - RF.sql | 52 +++++++++++++++++++ DB/altium_library/Views/Interface - CAN.sql | 43 +++++++++++++++ .../Views/Interface - Ethernet.sql | 43 +++++++++++++++ DB/altium_library/Views/Interface - RS485.sql | 43 +++++++++++++++ DB/altium_library/Views/Reset Supervisor.sql | 42 +++++++++++++++ DB/altium_library/altium_library.sqlproj | 8 ++- 7 files changed, 243 insertions(+), 1 deletion(-) create mode 100644 DB/altium_library/Views/Connector - RF.sql create mode 100644 DB/altium_library/Views/Interface - CAN.sql create mode 100644 DB/altium_library/Views/Interface - Ethernet.sql create mode 100644 DB/altium_library/Views/Interface - RS485.sql create mode 100644 DB/altium_library/Views/Reset Supervisor.sql diff --git a/DB/altium_library/Tables/Components.sql b/DB/altium_library/Tables/Components.sql index 0386b8499..304ec1a3a 100644 --- a/DB/altium_library/Tables/Components.sql +++ b/DB/altium_library/Tables/Components.sql @@ -265,10 +265,23 @@ [ChannelCapacitance] VARCHAR (50) NULL, [ChannelLeakage] VARCHAR (50) NULL, [Crosstalk] VARCHAR (50) NULL, + [Reset] VARCHAR (50) NULL, + [ResetTimeout] VARCHAR (50) NULL, + [VoltageThreshold] VARCHAR (50) NULL, + [ContactTermination] VARCHAR (50) NULL, + [ShieldTermination] VARCHAR (50) NULL, + [CableGroup] VARCHAR (50) NULL, + [BodyMaterial] VARCHAR (50) NULL, + [BodyFinish] VARCHAR (50) NULL, + [CenterContactMaterial] VARCHAR (50) NULL, + [CenterContactPlating] VARCHAR (50) NULL, + [DielectricMaterial] VARCHAR (50) NULL, CONSTRAINT [PK_Components] PRIMARY KEY CLUSTERED ([PartId] ASC) ); + + GO CREATE NONCLUSTERED INDEX [IX_ComponentType] ON [dbo].[Components]([ComponentType] ASC); diff --git a/DB/altium_library/Views/Connector - RF.sql b/DB/altium_library/Views/Connector - RF.sql new file mode 100644 index 000000000..deddf6312 --- /dev/null +++ b/DB/altium_library/Views/Connector - RF.sql @@ -0,0 +1,52 @@ + + + +CREATE VIEW [dbo].[Connector - RF] +AS +SELECT TOP (100) PERCENT PartId, + Value, + Comment, + MfrPartNo AS [Part Number], + Manufacturer, + Description, + Supplier1 AS [Supplier 1], + Supplier1PartNo AS [Supplier Part Number 1], + FootprintRef AS [Footprint Ref], + FootprintPath AS [Footprint Path], + SymbolRef AS [Library Ref], + SymbolPath AS [Library Path], + ComponentLink1Description, + ComponentLink1URL, + ComponentLink2Description, + ComponentLink2URL, + ComponentLink3Description, + ComponentLink3URL, + Supplier2 AS [Supplier 2], + Supplier2PartNo AS [Supplier Part Number 2], + FootprintRef2 AS [Footprint Ref 2], + FootprintPath2 AS [Footprint Path 2], + FootprintRef3 AS [Footprint Ref 3], + FootprintPath3 AS [Footprint Path 3], + Price, + Type, + TemperatureRange AS [Operating Temperature], + Style, + Series, + ContactTermination AS [Contact Termination], + ShieldTermination AS [Shield Termination], + Impedance, + MountingType AS [Mounting Type], + CableGroup AS [Cable Group], + FasteningType AS [Fastening Type], + FrequencyUpper AS [Frequency - Max], + Features, + Colour AS [Housing Colour], + IngressProtection AS [Ingress Protection], + BodyMaterial AS [Body Material], + BodyFinish AS [Body Finish], + CenterContactMaterial AS [Center Contact Material], + CenterContactPlating AS [Center Contact Plating], + DielectricMaterial AS [Dielectric Material], + Voltage AS [Voltage Rating] +FROM dbo.Components +WHERE (ComponentType = 'CONN') AND ComponentSubType = 'RF' \ No newline at end of file diff --git a/DB/altium_library/Views/Interface - CAN.sql b/DB/altium_library/Views/Interface - CAN.sql new file mode 100644 index 000000000..f6a72821c --- /dev/null +++ b/DB/altium_library/Views/Interface - CAN.sql @@ -0,0 +1,43 @@ + + +CREATE VIEW [dbo].[Interface - CAN] +AS +SELECT PartId, +Value, +Comment, +MfrPartNo AS [Part Number], +Manufacturer, +Description, +Supplier1 AS [Supplier 1], +Supplier1PartNo AS [Supplier Part Number 1], +FootprintRef AS [Footprint Ref], +FootprintPath AS [Footprint Path], +SymbolRef AS [Library Ref], +SymbolPath AS [Library Path], +ComponentLink1Description, +ComponentLink1URL, +ComponentLink2Description, +ComponentLink2URL, +ComponentLink3Description, +ComponentLink3URL, +Supplier2 AS [Supplier 2], +Supplier2PartNo AS [Supplier Part Number 2], +FootprintRef2 AS [Footprint Ref 2], +FootprintPath2 AS [Footprint Path 2], +FootprintRef3 AS [Footprint Ref 3], +FootprintPath3 AS [Footprint Path 3], +Price, +Type, +DevicePackage AS [Device Package], +TemperatureRange AS [Operating Temperature], + +Protocol, +NumberOfDriversReceivers AS [Number of Drivers/Receivers], +Duplex, +ReceiverHysteresis AS [Receiver Hysteresis], +DataRate AS [Data Rate], +Voltage AS [Voltage - Supply] + + +FROM dbo.Components +WHERE (ComponentType = 'CAN') \ No newline at end of file diff --git a/DB/altium_library/Views/Interface - Ethernet.sql b/DB/altium_library/Views/Interface - Ethernet.sql new file mode 100644 index 000000000..b1a341189 --- /dev/null +++ b/DB/altium_library/Views/Interface - Ethernet.sql @@ -0,0 +1,43 @@ + + +CREATE VIEW [dbo].[Interface - Ethernet] +AS +SELECT PartId, +Value, +Comment, +MfrPartNo AS [Part Number], +Manufacturer, +Description, +Supplier1 AS [Supplier 1], +Supplier1PartNo AS [Supplier Part Number 1], +FootprintRef AS [Footprint Ref], +FootprintPath AS [Footprint Path], +SymbolRef AS [Library Ref], +SymbolPath AS [Library Path], +ComponentLink1Description, +ComponentLink1URL, +ComponentLink2Description, +ComponentLink2URL, +ComponentLink3Description, +ComponentLink3URL, +Supplier2 AS [Supplier 2], +Supplier2PartNo AS [Supplier Part Number 2], +FootprintRef2 AS [Footprint Ref 2], +FootprintPath2 AS [Footprint Path 2], +FootprintRef3 AS [Footprint Ref 3], +FootprintPath3 AS [Footprint Path 3], +Price, +Type, +DevicePackage AS [Device Package], +TemperatureRange AS [Operating Temperature], + +Protocol, +NumberOfDriversReceivers AS [Number of Drivers/Receivers], +Duplex, +ReceiverHysteresis AS [Receiver Hysteresis], +DataRate AS [Data Rate], +Voltage AS [Voltage - Supply] + + +FROM dbo.Components +WHERE (ComponentType = 'ETH') \ No newline at end of file diff --git a/DB/altium_library/Views/Interface - RS485.sql b/DB/altium_library/Views/Interface - RS485.sql new file mode 100644 index 000000000..2b93d9eb3 --- /dev/null +++ b/DB/altium_library/Views/Interface - RS485.sql @@ -0,0 +1,43 @@ + + +CREATE VIEW [dbo].[Interface - RS485] +AS +SELECT PartId, +Value, +Comment, +MfrPartNo AS [Part Number], +Manufacturer, +Description, +Supplier1 AS [Supplier 1], +Supplier1PartNo AS [Supplier Part Number 1], +FootprintRef AS [Footprint Ref], +FootprintPath AS [Footprint Path], +SymbolRef AS [Library Ref], +SymbolPath AS [Library Path], +ComponentLink1Description, +ComponentLink1URL, +ComponentLink2Description, +ComponentLink2URL, +ComponentLink3Description, +ComponentLink3URL, +Supplier2 AS [Supplier 2], +Supplier2PartNo AS [Supplier Part Number 2], +FootprintRef2 AS [Footprint Ref 2], +FootprintPath2 AS [Footprint Path 2], +FootprintRef3 AS [Footprint Ref 3], +FootprintPath3 AS [Footprint Path 3], +Price, +Type, +DevicePackage AS [Device Package], +TemperatureRange AS [Operating Temperature], + +Protocol, +NumberOfDriversReceivers AS [Number of Drivers/Receivers], +Duplex, +ReceiverHysteresis AS [Receiver Hysteresis], +DataRate AS [Data Rate], +Voltage AS [Voltage - Supply] + + +FROM dbo.Components +WHERE (ComponentType = 'RS485') \ No newline at end of file diff --git a/DB/altium_library/Views/Reset Supervisor.sql b/DB/altium_library/Views/Reset Supervisor.sql new file mode 100644 index 000000000..8c9257024 --- /dev/null +++ b/DB/altium_library/Views/Reset Supervisor.sql @@ -0,0 +1,42 @@ + + +CREATE VIEW [dbo].[Reset Supervisor] +AS +SELECT PartId, +Value, +Comment, +MfrPartNo AS [Part Number], +Manufacturer, +Description, +Supplier1 AS [Supplier 1], +Supplier1PartNo AS [Supplier Part Number 1], +FootprintRef AS [Footprint Ref], +FootprintPath AS [Footprint Path], +SymbolRef AS [Library Ref], +SymbolPath AS [Library Path], +ComponentLink1Description, +ComponentLink1URL, +ComponentLink2Description, +ComponentLink2URL, +ComponentLink3Description, +ComponentLink3URL, +Supplier2 AS [Supplier 2], +Supplier2PartNo AS [Supplier Part Number 2], +FootprintRef2 AS [Footprint Ref 2], +FootprintPath2 AS [Footprint Path 2], +FootprintRef3 AS [Footprint Ref 3], +FootprintPath3 AS [Footprint Path 3], +Price, +Type, +DevicePackage AS [Device Package], +TemperatureRange AS [Operating Temperature], + +NumberOfInputs AS [Voltages Monitored], +Output, +Reset, +ResetTimeout AS [Reset Timeout], +VoltageThreshold AS [Voltage - Threshold] + + +FROM dbo.Components +WHERE (ComponentType = 'RESET') \ No newline at end of file diff --git a/DB/altium_library/altium_library.sqlproj b/DB/altium_library/altium_library.sqlproj index 61e142ce0..0255a6b2e 100644 --- a/DB/altium_library/altium_library.sqlproj +++ b/DB/altium_library/altium_library.sqlproj @@ -8,7 +8,7 @@ <SchemaVersion>2.0</SchemaVersion> <ProjectVersion>4.1</ProjectVersion> <ProjectGuid>{e8d2b255-f780-4188-89ba-a3a393b1e265}</ProjectGuid> - <DSP>Microsoft.Data.Tools.Schema.Sql.Sql120DatabaseSchemaProvider</DSP> + <DSP>Microsoft.Data.Tools.Schema.Sql.SqlAzureV12DatabaseSchemaProvider</DSP> <OutputType>Database</OutputType> <RootPath> </RootPath> @@ -25,6 +25,7 @@ <TargetDatabaseSet>True</TargetDatabaseSet> <DefaultCollation>SQL_Latin1_General_CP1_CI_AS</DefaultCollation> <DefaultFilegroup>PRIMARY</DefaultFilegroup> + <GenerateCreateScript>True</GenerateCreateScript> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <OutputPath>bin\Release\</OutputPath> @@ -134,5 +135,10 @@ <Build Include="Views\Voltage Regulator - Switchmode.sql" /> <Build Include="Views\Battery Holder.sql" /> <Build Include="Views\Sensor - Temperature.sql" /> + <Build Include="Views\Reset Supervisor.sql" /> + <Build Include="Views\Interface - RS485.sql" /> + <Build Include="Views\Interface - Ethernet.sql" /> + <Build Include="Views\Interface - CAN.sql" /> + <Build Include="Views\Connector - RF.sql" /> </ItemGroup> </Project> \ No newline at end of file