Explorar el Código

Kit type

pull/7/head
Daniel Covington hace 7 meses
padre
commit
411ad7682c
Se han modificado 3 ficheros con 18 adiciones y 1 borrados
  1. +16
    -0
      Data/Migrations/Migration_12_Alter_Kit_Table_With_Type.asp
  2. +1
    -0
      Data/Migrations/migrate.asp
  3. +1
    -1
      ImportService/TrackingDataImport.vbs

+ 16
- 0
Data/Migrations/Migration_12_Alter_Kit_Table_With_Type.asp Ver fichero

@@ -0,0 +1,16 @@
<%
Class Migration_12_Alter_Kit_Table_With_Type
Public Migration

Public Sub Up
Migration.Do "ALTER TABLE [Kit] " &_
"ADD [JobType] VARCHAR(50);"
End Sub
Public Sub Down
Migration.Do "ALTER TABLE [Kit] " &_
"DROP COLUMN [JobType];"
End Sub
End Class
Migrations.Add "Migration_12_Alter_Kit_Table_With_Type"
%>

+ 1
- 0
Data/Migrations/migrate.asp Ver fichero

@@ -40,6 +40,7 @@ Migrations.Tracing = false
<!--#include file="Migration_09_Create_InkJetRecords_Table.asp"-->
<!--#include file="Migration_10_Alter_Tables_For_Relations.asp"-->
<!--#include file="Migration_11_Alter_Tables_For_Relations_FK.asp"-->
<!--#include file="Migration_12_Alter_Kit_Table_With_Type.asp"-->
<%
Sub HandleMigration
putl "<b>Starting Version: " & Migrations.Version & "</b>"


+ 1
- 1
ImportService/TrackingDataImport.vbs Ver fichero

@@ -73,7 +73,7 @@ Dim JCode:JCode = Left(Filename,5)
Dim oConn:Set oConn = WScript.CreateObject("ADODB.Connection")
oConn.ConnectionString = ConnectionString
oConn.Open
oConn.Execute("Insert Into Kit ([JobNumber], [Jcode], [CreatedOn]) VALUES ('" & JobNumber & "','" & JCode & "',#" & Now() & "#);")
oConn.Execute("Insert Into Kit ([JobNumber], [Jcode], [CreatedOn], [JobType]) VALUES ('" & JobNumber & "','" & JCode & "',#" & Now() & "#,'Purple Envelopes');")
Dim rs : set rs = oConn.Execute("Select TOP 1 ID from Kit ORDER BY ID DESC")
Dim kitId : kitId = rs("ID").value
rs.close


Cargando…
Cancelar
Guardar

Powered by TurnKey Linux.