25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
850B

  1. <%
  2. '=======================================================================================================================
  3. ' MIGRATION: create_boards
  4. '=======================================================================================================================
  5. Sub Migration_Up(migration)
  6. migration.ExecuteSQL _
  7. "CREATE TABLE [boards] (" & _
  8. "[id] AUTOINCREMENT PRIMARY KEY, " & _
  9. "[name] VARCHAR(255) NOT NULL, " & _
  10. "[slug] VARCHAR(255) NOT NULL, " & _
  11. "[created_at] DATETIME, " & _
  12. "[created_by] VARCHAR(255), " & _
  13. "[updated_at] DATETIME, " & _
  14. "[updated_by] VARCHAR(255)" & _
  15. ")"
  16. migration.ExecuteSQL "CREATE INDEX [idx_boards_slug] ON [boards] ([slug])"
  17. End Sub
  18. Sub Migration_Down(migration)
  19. migration.ExecuteSQL "DROP TABLE [boards]"
  20. End Sub
  21. %>

Powered by TurnKey Linux.