1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//! Migration for schema refinements.
//!
//! This module removes the snapshot table (no longer used) and extends the event
//! name column for longer event type names.
use vec_box;
/// Migration that drops the snapshot table and extends the event name column.
///
/// This migration makes two changes to optimize the schema:
///
/// ## Changes
///
/// 1. **Drops the snapshot table** - The snapshot functionality has been removed
/// from Evento, so this table is no longer needed.
///
/// 2. **Extends event.name column** - Changes the `name` column from VARCHAR(20)
/// to VARCHAR(50) to accommodate longer event type names.
///
/// ## Database-Specific Notes
///
/// - **SQLite**: The column alteration is a no-op since SQLite doesn't support
/// `ALTER COLUMN`. The column was already created with sufficient length.
/// - **MySQL**: Uses `MODIFY COLUMN` syntax.
/// - **PostgreSQL**: Uses standard `ALTER COLUMN` syntax.
///
/// ## Dependencies
///
/// This migration depends on [`M0002`](crate::M0002).
;
sqlite_migration!;
mysql_migration!;
postgres_migration!;