mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-17 02:34:40 +08:00
34 lines
852 B
Ruby
34 lines
852 B
Ruby
# frozen_string_literal: true
|
|
|
|
# This file is auto-generated from the IntermediateDB schema. To make changes,
|
|
# update the "config/intermediate_db.yml" configuration file and then run
|
|
# `bin/cli schema generate` to regenerate this file.
|
|
|
|
module Migrations::Database::IntermediateDB
|
|
module BadgeGrouping
|
|
SQL = <<~SQL
|
|
INSERT INTO badge_groupings (
|
|
original_id,
|
|
created_at,
|
|
description,
|
|
name,
|
|
position
|
|
)
|
|
VALUES (
|
|
?, ?, ?, ?, ?
|
|
)
|
|
SQL
|
|
private_constant :SQL
|
|
|
|
def self.create(original_id:, created_at: nil, description: nil, name:, position:)
|
|
::Migrations::Database::IntermediateDB.insert(
|
|
SQL,
|
|
original_id,
|
|
::Migrations::Database.format_datetime(created_at),
|
|
description,
|
|
name,
|
|
position,
|
|
)
|
|
end
|
|
end
|
|
end
|