From 6c7972c7e00fb573104a2ec82552c5411f689131 Mon Sep 17 00:00:00 2001 From: Fahad Khalid <79192414+FahadKhalid210@users.noreply.github.com> Date: Tue, 23 Jan 2024 13:49:04 +0500 Subject: [PATCH] feat: Convert user_id field from Int64 to UInt64 Close #12 --- changelog.d/20231220_171731_fahad.khalid_fahad_cairn_12.md | 1 + .../apps/clickhouse/migrations.d/0011_modify_events_type.sql | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 changelog.d/20231220_171731_fahad.khalid_fahad_cairn_12.md create mode 100644 tutorcairn/templates/cairn/apps/clickhouse/migrations.d/0011_modify_events_type.sql diff --git a/changelog.d/20231220_171731_fahad.khalid_fahad_cairn_12.md b/changelog.d/20231220_171731_fahad.khalid_fahad_cairn_12.md new file mode 100644 index 0000000..7039974 --- /dev/null +++ b/changelog.d/20231220_171731_fahad.khalid_fahad_cairn_12.md @@ -0,0 +1 @@ +- 💥[Improvement] Convert `events.user_id` and `video_events.user_id` fields from Int64 to UInt64. (by @FahadKhalid210) \ No newline at end of file diff --git a/tutorcairn/templates/cairn/apps/clickhouse/migrations.d/0011_modify_events_type.sql b/tutorcairn/templates/cairn/apps/clickhouse/migrations.d/0011_modify_events_type.sql new file mode 100644 index 0000000..6aa0e85 --- /dev/null +++ b/tutorcairn/templates/cairn/apps/clickhouse/migrations.d/0011_modify_events_type.sql @@ -0,0 +1,5 @@ +ALTER TABLE events +MODIFY COLUMN user_id UInt64; + +ALTER TABLE video_events +MODIFY COLUMN user_id UInt64;