#!/usr/bin/env ruby
# frozen_string_literal: true

require_relative 'config/boot'

puts "开始添加 root 密码字段到数据库..."

begin
  Database.add_root_password_column!
  puts "✓ 数据库迁移成功！"
rescue StandardError => e
  puts "✗ 迁移失败: #{e.message}"
  puts e.backtrace
  exit 1
end
