Skip to content

Commit f07383b

Browse files
committed
DEV: Update categories table
1 parent a8b8487 commit f07383b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

migrations/db/intermediate_db_schema/100-base-schema.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ CREATE TABLE categories
4949
emoji TEXT,
5050
existing_id TEXT,
5151
icon TEXT,
52+
locale TEXT,
5253
mailinglist_mirror BOOLEAN,
5354
minimum_required_tags INTEGER,
5455
name TEXT NOT NULL,

migrations/lib/database/intermediate_db/category.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ module Category
2828
emoji,
2929
existing_id,
3030
icon,
31+
locale,
3132
mailinglist_mirror,
3233
minimum_required_tags,
3334
name,
@@ -57,7 +58,7 @@ module Category
5758
)
5859
VALUES (
5960
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
60-
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?
61+
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?
6162
)
6263
SQL
6364

@@ -82,6 +83,7 @@ def self.create(
8283
emoji: nil,
8384
existing_id: nil,
8485
icon: nil,
86+
locale: nil,
8587
mailinglist_mirror: nil,
8688
minimum_required_tags: nil,
8789
name:,
@@ -131,6 +133,7 @@ def self.create(
131133
emoji,
132134
existing_id,
133135
icon,
136+
locale,
134137
::Migrations::Database.format_boolean(mailinglist_mirror),
135138
minimum_required_tags,
136139
name,

0 commit comments

Comments
 (0)