You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Migration_03_Create_Settings_Table.asp 893B

преди 8 месеца
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.