Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

Migration_03_Create_Settings_Table.asp 893B

8 meses atrás
1234567891011121314151617181920212223242526
  1. <%
  2. Class Migration_03_Create_Settings_Table
  3. Public Migration
  4. Public Sub Up
  5. Migration.Do "CREATE TABLE [Settings] (" &_
  6. "[ID] COUNTER," &_
  7. "[Name] VARCHAR(255)," &_
  8. "[Value] VARCHAR(255)" &_
  9. ");"
  10. Migration.Do "CREATE UNIQUE INDEX [ID] ON [Settings]( [ID] ) WITH PRIMARY;"
  11. Migration.Do "INSERT INTO Settings ([Name],[Value]) VALUES ('MailingID', '202248');"
  12. Migration.Do "INSERT INTO Settings ([Name],[Value]) VALUES ('SerialNumberStart','2000000');"
  13. Migration.Do "INSERT INTO Settings ([Name],[Value]) VALUES ('SerialNumberEnd','5000000');"
  14. Migration.Do "INSERT INTO Settings ([Name],[Value]) Values ('SerialOffset','2000000');"
  15. End Sub
  16. Public Sub Down
  17. Migration.Do "DROP TABLE [Settings]"
  18. End Sub
  19. End Class
  20. Migrations.Add "Migration_03_Create_Settings_Table"
  21. %>

Powered by TurnKey Linux.