|
- <%
- '=======================================================================================================================
- ' MIGRATION: create_interactions_table
- '=======================================================================================================================
-
- Sub Migration_Up(migration)
- migration.CreateTable "interactions", "id AUTOINCREMENT PRIMARY KEY, business_id LONG NOT NULL, " & _
- "method VARCHAR(10) NOT NULL, outcome VARCHAR(30), notes LONGTEXT, " & _
- "contacted_at DATETIME, follow_up_date DATETIME, created_at DATETIME"
- migration.CreateIndex "ix_interactions_business_id", "interactions", "business_id"
- migration.CreateIndex "ix_interactions_contacted_at", "interactions", "contacted_at"
- End Sub
-
- Sub Migration_Down(migration)
- migration.DropTable "interactions"
- End Sub
- %>
|