Skip to content

Commit

Permalink
Restructure and removed bread packages hell
Browse files Browse the repository at this point in the history
  • Loading branch information
rxcod9 committed Dec 12, 2022
1 parent 69d852d commit 292d58e
Show file tree
Hide file tree
Showing 225 changed files with 9,743 additions and 357 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Update Changelog"

on:
release:
types: [released]

jobs:
update:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: main

- name: Update Changelog
uses: stefanzweifel/changelog-updater-action@v1
with:
latest-version: ${{ github.event.release.name }}
release-notes: ${{ github.event.release.body }}

- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
commit_message: Update CHANGELOG
file_pattern: CHANGELOG.md
41 changes: 0 additions & 41 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,47 +21,6 @@
"require": {
"php": "^7.3|^8.0|^9.0",
"illuminate/support": "^7|^8|^9",
"joy/voyager-bread-account": "^1.0",
"joy/voyager-bread-activity": "^1.0",
"joy/voyager-bread-article": "^1.0",
"joy/voyager-bread-article-category": "^1.0",
"joy/voyager-bread-call": "^1.0",
"joy/voyager-bread-campaign": "^1.0",
"joy/voyager-bread-contact": "^1.0",
"joy/voyager-bread-contract": "^1.0",
"joy/voyager-bread-currency": "^1.0",
"joy/voyager-bread-deal": "^1.0",
"joy/voyager-bread-document": "^1.0",
"joy/voyager-bread-email": "^1.0",
"joy/voyager-bread-email-template": "^1.0",
"joy/voyager-bread-event": "^1.0",
"joy/voyager-bread-group": "^1.0",
"joy/voyager-bread-invoice": "^1.0",
"joy/voyager-bread-lead": "^1.0",
"joy/voyager-bread-line-item": "^1.0",
"joy/voyager-bread-location": "^1.0",
"joy/voyager-bread-meeting": "^1.0",
"joy/voyager-bread-note": "^1.0",
"joy/voyager-bread-notification": "^1.0",
"joy/voyager-bread-opportunity": "^1.0",
"joy/voyager-bread-order": "^1.0",
"joy/voyager-bread-pdf-template": "^1.0",
"joy/voyager-bread-pipeline": "^1.0",
"joy/voyager-bread-plan": "^1.0",
"joy/voyager-bread-product": "^1.0",
"joy/voyager-bread-product-category": "^1.0",
"joy/voyager-bread-project": "^1.0",
"joy/voyager-bread-project-task": "^1.0",
"joy/voyager-bread-quote": "^1.0",
"joy/voyager-bread-relatable": "^1.0",
"joy/voyager-bread-report": "^1.0",
"joy/voyager-bread-subscription": "^1.0",
"joy/voyager-bread-target": "^1.0",
"joy/voyager-bread-target-list": "^1.0",
"joy/voyager-bread-task": "^1.0",
"joy/voyager-bread-team": "^1.0",
"joy/voyager-bread-ticket": "^1.0",
"joy/voyager-bread-watcher": "^1.0",
"joy/voyager-core": "^1.0",
"tcg/voyager": "^1.4"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('accounts_audit', function (Blueprint $table) {
$table->comment('');
$table->uuid('id')->primary();
$table->uuid('parent_id')->index('idx_accounts_parent_id');
$table->uuid('created_by_id')->nullable();
$table->string('field_name', 100)->nullable();
$table->string('data_type', 100)->nullable();
$table->string('before_value_string')->nullable();
$table->string('after_value_string')->nullable();
$table->text('before_value_text')->nullable();
$table->text('after_value_text')->nullable();
$table->timestamps();
$table->softDeletes();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('accounts_audit');
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('accounts_bugs', function (Blueprint $table) {
$table->comment('');
$table->uuid('id')->primary();
$table->uuid('account_id')->nullable()->index('idx_acc_bug_acc');
$table->uuid('bug_id')->nullable()->index('idx_acc_bug_bug');

$table->index(['account_id', 'bug_id'], 'idx_account_bug');
$table->timestamps();
$table->softDeletes();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('accounts_bugs');
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('accounts_cases', function (Blueprint $table) {
$table->comment('');
$table->uuid('id')->primary();
$table->uuid('account_id')->nullable()->index('idx_acc_case_acc');
$table->uuid('case_id')->nullable()->index('idx_acc_acc_case');
$table->timestamps();
$table->softDeletes();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('accounts_cases');
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('accounts_contacts', function (Blueprint $table) {
$table->comment('');
$table->uuid('id')->primary();
$table->uuid('contact_id')->nullable();
$table->uuid('account_id')->nullable();

$table->index(['account_id', 'contact_id'], 'idx_account_contact');
$table->index(['contact_id', 'deleted_at', 'account_id'], 'idx_contid_del_accid');
$table->timestamps();
$table->softDeletes();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('accounts_contacts');
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('accounts_cstm', function (Blueprint $table) {
$table->comment('');
$table->uuid('id_c')->primary();
$table->float('jjwg_maps_lng_c', 11, 8)->nullable()->default(0);
$table->float('jjwg_maps_lat_c', 10, 8)->nullable()->default(0);
$table->string('jjwg_maps_geocode_status_c')->nullable();
$table->string('jjwg_maps_address_c')->nullable();
$table->timestamps();
$table->softDeletes();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('accounts_cstm');
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('accounts_opportunities', function (Blueprint $table) {
$table->comment('');
$table->uuid('id')->primary();
$table->uuid('opportunity_id')->nullable();
$table->uuid('account_id')->nullable();

$table->index(['account_id', 'opportunity_id'], 'idx_account_opportunity');
$table->index(['opportunity_id', 'deleted_at', 'account_id'], 'idx_oppid_del_accid');
$table->timestamps();
$table->softDeletes();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('accounts_opportunities');
}
};
66 changes: 66 additions & 0 deletions database/migrations/2022_12_12_033218_create_accounts_table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('accounts', function (Blueprint $table) {
$table->comment('');
$table->uuid('id')->primary();
$table->string('name', 150)->nullable();
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->text('description')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->string('account_type', 50)->nullable();
$table->string('industry', 50)->nullable();
$table->string('annual_revenue', 100)->nullable();
$table->string('phone_fax', 100)->nullable();
$table->string('billing_address_street', 150)->nullable();
$table->string('billing_address_city', 100)->nullable();
$table->string('billing_address_state', 100)->nullable();
$table->string('billing_address_postalcode', 20)->nullable();
$table->string('billing_address_country')->nullable();
$table->string('rating', 100)->nullable();
$table->string('phone_office', 100)->nullable();
$table->string('phone_alternate', 100)->nullable();
$table->string('website')->nullable();
$table->string('ownership', 100)->nullable();
$table->string('employees', 10)->nullable();
$table->string('ticker_symbol', 10)->nullable();
$table->string('shipping_address_street', 150)->nullable();
$table->string('shipping_address_city', 100)->nullable();
$table->string('shipping_address_state', 100)->nullable();
$table->string('shipping_address_postalcode', 20)->nullable();
$table->string('shipping_address_country')->nullable();
$table->uuid('parent_id')->nullable()->index('idx_accnt_parent_id');
$table->string('sic_code', 10)->nullable();
$table->uuid('campaign_id')->nullable();

$table->index(['deleted_at', 'assigned_user_id'], 'idx_accnt_assigned_del');
$table->index(['id', 'deleted_at'], 'idx_accnt_id_del');
$table->index(['name', 'deleted_at'], 'idx_accnt_name_del');
$table->timestamps();
$table->softDeletes();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('accounts');
}
};
Loading

0 comments on commit 292d58e

Please sign in to comment.