Commit the pile of initial work. Largely taken from company internal

repos, allowed to be newly released.  Portions already in production,
coverage still needs to be boosted.  Enjoy.

FossilOrigin-Name: 0f17fa483f55467bdf9e8f99dace58e6a90f5a8a7e595bdd79dfda5c92d16b7f
This commit is contained in:
Mahlon E. Smith 2014-04-22 00:21:43 +00:00
commit b18647f6a5
23 changed files with 2639 additions and 0 deletions

View file

@ -0,0 +1,32 @@
# vim: set nosta noet ts=4 sw=4:
### The initial Metronome DDL.
###
class Initial < Sequel::Migration
def initialize( db )
@db = db
end
def up
create_table( :metronome ) do
case @db.adapter_scheme
when :postgres
serial :id, primary_key: true
timestamptz :created, null: false
text :expression, null: false
text :options
else
Integer :id, auto_increment: true, primary_key: true
DateTime :created, null: false
String :expression, null: false
String :options
end
end
end
def down
drop_table( :metronome )
end
end