Sha256: eb40f9d7d28a8f605b3d9df3b08b03f5e8db1df94b3be1334cf73d3840b27b1d

Contents?: true

Size: 570 Bytes

Versions: 4

Compression:

Stored size: 570 Bytes

Contents

Sequel.migration do
  up do
    run '
      create table schedules (
        id int auto_increment,
        function_id int null,
        active tinyint default 1 not null,
        `interval` int null,
        cron varchar(255) null,
        name varchar(255) null,
        description blob null,
        task_ttl int null,
        last_run datetime null,
        created datetime default CURRENT_TIMESTAMP not null,
        updated datetime null,
        constraint schedules_pk
          primary key (id)
      );'
  end

  down do
    drop_table :schedules
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lex-scheduler-0.1.3 lib/legion/extensions/scheduler/data/migrations/001_schedule_table.rb
lex-scheduler-0.1.2 lib/legion/extensions/scheduler/data/migrations/001_schedule_table.rb
lex-scheduler-0.1.1 lib/legion/extensions/scheduler/data/migrations/001_schedule_table.rb
lex-scheduler-0.1.0 lib/legion/extensions/scheduler/data/migrations/001_schedule_table.rb