lazuscripts-githook/migrations.moon
Paul Liverman III 1b342bcabc re-initialization
tl;dr: I accidentally included history from OTHER repos due to
a bug with git subtree or a misunderstanding of it on my part,
so I'm wiping everything before this point
2018-03-04 11:44:42 -08:00

26 lines
794 B
Plaintext

import create_table, types, create_index from require "lapis.db.schema"
import autoload from require "locator"
import settings from autoload "utility"
{
[1519992142]: =>
create_table "githook_logs", {
{"id", types.serial primary_key: true}
{"success", types.boolean default: true}
{"exit_codes", types.text null: true}
{"log", types.text null: true}
{"created_at", types.time}
{"updated_at", types.time}
}
create_index "githook_logs", "id", unique: true
create_index "githook_logs", "success"
settings["githook.save_logs"] = true
settings["githook.save_on_success"] = true
settings["githook.allow_get"] = true
settings["githook.run_without_auth"] = false
-- settings["githook.branch"] = "master"
settings.save!
}