<commit_before>import mixin_table from require "moon"
import create_table, types, add_column from require "lapis.db.schema"

migrations={}

mixin_model=(name)-> mixin_table migrations, {"%s_%06d"\format(name,k), v for k,v in pairs (require "models."..name).migrations}

mixin_table migrations, require "lazuli.modules.user_management.migrations"

mixin_model "profiles"
mixin_model "acls"
mixin_model "acl_entries"

migrations<commit_msg>added is_admin field<commit_after>import mixin_table from require "moon"
import create_table, types, add_column from require "lapis.db.schema"

migrations={
  ["custom_user_management_000001"]: ->
    add_column "lazuli_modules_user_management_users", "is_admin", types.boolean default:false
}

mixin_model=(name)-> mixin_table migrations, {"%s_%06d"\format(name,k), v for k,v in pairs (require "models."..name).migrations}

mixin_table migrations, require "lazuli.modules.user_management.migrations"

mixin_model "profiles"
mixin_model "acls"
mixin_model "acl_entries"

migrations
{'fraction_non_alphanumeric': 0.11678115799803729, 'fraction_numerical': 0.009813542688910697, 'mean_word_length': 7.571428571428571, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4353097', 'n_tokens_mistral': 353, 'n_tokens_neox': 357, 'n_words': 77}