discourse/migrations/lib/database/intermediate_db/badge_grouping.rb

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