<commit_before># originator

> **Note:** This project is in early development, and versioning is a little different. [Read this](http://markup.im/#q4_cRZ1Q) for more details.

originator is a framework independent CLI for managing databases.

## Why should you care?

There are no dependencies for this beyond MySQL (PostgreSQL is next on the list), so you can use this with any type of application.

This CLI is based heavily off of Laravel's Artisan, but adds a few much needed commands.

Let's let the features speak for themselves, so you should just check out that section.

## Installation

Clone the repo, and you should be good to go.

## Features + Usage

### migrate:make

You'll be able to create migrations with the `migrate:make` command.  This command takes one parameter, and that's the migration name.

This function will create two files; one named something like `migrations/migrate/1406769615_migrate_my_first_migration.sql` and another named something like `migrations/revert/1406769615_revert_my_first_migration.sql`.

In the migrate file, you should create your migration.  In the revert file it should do the opposite of the migrate file.  For example, if you create a table in the migrate file, you should drop the table in the revert file.

**Example Usage**: `./originator migrate:make my_first_migration` 

### migrate

Migrate by itself will run all outstanding migrations.

**Example Usage**: `./originator migrate`

### migrate:update

Update will run through all of the migration files and ensure that they're being tracked.  This is useful when working in teams or right after running a `git pull` of a repo that has a copy of originator in it.

**Example Usage**: `./originator migrate:update`

### migrate:rollback

Rollback will revert the last batch of migrations that were ran.  This is useful in combination with the `migrate` command when tweaking migrations.
<commit_msg>More verbiage changes.<commit_after># originator

> **Note:** This project is in early development, and versioning is a little different. [Read this](http://markup.im/#q4_cRZ1Q) for more details.

originator is a framework independent CLI for managing databases.

## Why should you care?

There are no dependencies for this beyond MySQL (PostgreSQL is next on the list), so you can use this with any type of application.

This CLI is based heavily off of Laravel's Artisan, but adds a few much needed commands.

Let's let the features speak for themselves, so you should just check out that section.

## Installation

After cloning the repo, poke around in modules/migrate/config/.

You'll need to update the `database_config.bash` file, and you'll probably also want to check out the `migrate_config.bash` to tweak a few other small settings.

## Features + Usage

### migrate:make

You'll be able to create migrations with the `migrate:make` command.  This command takes one parameter, and that's the migration name.

This function will create two files; one named something like `migrations/migrate/1406769615_migrate_my_first_migration.sql` and another named something like `migrations/revert/1406769615_revert_my_first_migration.sql`.

In the migrate file, you should create your migration.  In the revert file it should do the opposite of the migrate file.  For example, if you create a table in the migrate file, you should drop the table in the revert file.

**Example Usage**: `./originator migrate:make my_first_migration` 

### migrate

Migrate by itself will run all outstanding migrations.

**Example Usage**: `./originator migrate`

### migrate:update

Update will run through all of the migration files and ensure that they're being tracked.  This is useful when working in teams or right after running a `git pull` of a repo that has a copy of originator in it.

**Example Usage**: `./originator migrate:update`

### migrate:rollback

Rollback will revert the last batch of migrations that were ran.  This is useful in combination with the `migrate` command when tweaking migrations.

{'fraction_non_alphanumeric': 0.06532036898529045, 'fraction_numerical': 0.010969832959361756, 'mean_word_length': 4.642756680731364, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '159192', 'n_tokens_mistral': 1122, 'n_tokens_neox': 1058, 'n_words': 560}