# frozen_string_literal: true ROM::SQL.migration do change do # Add new columns to events table alter_table :events do add_column :description, String add_column :event_date, DateTime add_column :event_type, String, default: 'tournament' add_column :format, String, default: 'single_elim' add_column :status, String, default: 'planned' add_column :max_participants, Integer add_column :created_at, DateTime, null: false, default: Sequel::CURRENT_TIMESTAMP add_column :updated_at, DateTime, null: false, default: Sequel::CURRENT_TIMESTAMP end # Remove the self-referential column that's not being used # (keeping it for potential nested tournaments in future) # alter_table :events do # drop_column :event_id # end end end