diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7bee9c9..6b5a151 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -129,7 +129,7 @@ jobs: with: level: 9 php_version: "8.2" - path: config/ src/ tests/Feature/ tests/Unit/ + path: config/ routes/ src/ tests/Feature/ tests/Unit/ args: --verbose --debug - name: Stopping timer if: ${{ !cancelled() }} diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 97cd8fe..70a90e0 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -215,7 +215,6 @@ $finder = PhpCsFixer\Finder::create() ->in([ __DIR__.'/config', - __DIR__.'/database', // __DIR__.'/lang', __DIR__.'/routes', __DIR__.'/resources', diff --git a/README.md b/README.md index 6200483..899a1ae 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,35 @@ Information on [environment variables is available on the wiki for this package] This package requires the migrations in [playground-matrix](https://github.com/gammamatrix/playground-matrix) a Laravel package. +## Cloc + +```sh +composer cloc +``` + +``` +➜ playground-matrix-resource git:(develop) ✗ composer cloc +> cloc --exclude-dir=node_modules,output,vendor . + 517 text files. + 441 unique files. + 78 files ignored. + +github.com/AlDanial/cloc v 1.98 T=0.56 s (792.2 files/s, 121336.2 lines/s) +------------------------------------------------------------------------------- +Language files blank comment code +------------------------------------------------------------------------------- +JSON 3 0 0 23774 +PHP 304 3394 4899 20150 +YAML 92 5 0 13943 +Blade 36 159 7 865 +XML 3 0 4 224 +Markdown 2 37 0 67 +INI 1 3 0 12 +------------------------------------------------------------------------------- +SUM: 441 3598 4910 59035 +------------------------------------------------------------------------------- +``` + ## PHPStan Tests at level 9 on: diff --git a/composer.json b/composer.json index 2202389..213bdf8 100644 --- a/composer.json +++ b/composer.json @@ -22,15 +22,15 @@ ], "require": { "php": "^8.2", - "gammamatrix/playground-auth": "dev-develop|dev-master|dev-feature/*|^73.0@dev|^73.0", - "gammamatrix/playground-blade": "dev-develop|dev-master|dev-feature/*|^73.0@dev|^73.0", - "gammamatrix/playground-http": "dev-develop|dev-master|dev-feature/*|^73.0@dev|^73.0", - "gammamatrix/playground-matrix": "dev-develop|dev-master|dev-feature/*|^73.0@dev|^73.0" + "gammamatrix/playground-auth": "*", + "gammamatrix/playground-blade": "*", + "gammamatrix/playground-http": "*", + "gammamatrix/playground-matrix": "*" }, "require-dev": { - "gammamatrix/playground-login-blade": "dev-develop|dev-master|dev-feature/*|^73.0@dev|^73.0", - "gammamatrix/playground-site-blade": "dev-develop|dev-master|dev-feature/*|^73.0@dev|^73.0", - "gammamatrix/playground-test": "dev-develop|dev-master|dev-feature/*|^73.0@dev|^73.0" + "gammamatrix/playground-login-blade": "*", + "gammamatrix/playground-site-blade": "*", + "gammamatrix/playground-test": "*" }, "minimum-stability": "dev", "prefer-stable": true, @@ -65,8 +65,9 @@ } }, "scripts": { - "test": "vendor/bin/testbench package:test", + "analyse": "vendor/bin/phpstan analyse --verbose --debug --level max", + "cloc": "cloc --exclude-dir=node_modules,output,vendor .", "format": "vendor/bin/php-cs-fixer fix", - "analyse": "vendor/bin/phpstan analyse --verbose --debug --level max" + "test": "vendor/bin/phpunit" } } diff --git a/database/migrations-laravel/0001_01_01_000000_create_users_table.php b/database/migrations-laravel/0001_01_01_000000_create_users_table.php deleted file mode 100644 index 5ef79e4..0000000 --- a/database/migrations-laravel/0001_01_01_000000_create_users_table.php +++ /dev/null @@ -1,51 +0,0 @@ -id(); - $table->string('name'); - $table->string('email')->unique(); - $table->timestamp('email_verified_at')->nullable(); - $table->string('password'); - $table->rememberToken(); - $table->timestamps(); - }); - - Schema::create('password_reset_tokens', function (Blueprint $table) { - $table->string('email')->primary(); - $table->string('token'); - $table->timestamp('created_at')->nullable(); - }); - - Schema::create('sessions', function (Blueprint $table) { - $table->string('id')->primary(); - $table->foreignId('user_id')->nullable()->index(); - $table->string('ip_address', 45)->nullable(); - $table->text('user_agent')->nullable(); - $table->longText('payload'); - $table->integer('last_activity')->index(); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('users'); - Schema::dropIfExists('password_reset_tokens'); - Schema::dropIfExists('sessions'); - } -}; diff --git a/database/migrations-laravel/0001_01_01_000001_create_cache_table.php b/database/migrations-laravel/0001_01_01_000001_create_cache_table.php deleted file mode 100644 index 960e12b..0000000 --- a/database/migrations-laravel/0001_01_01_000001_create_cache_table.php +++ /dev/null @@ -1,37 +0,0 @@ -string('key')->primary(); - $table->mediumText('value'); - $table->integer('expiration'); - }); - - Schema::create('cache_locks', function (Blueprint $table) { - $table->string('key')->primary(); - $table->string('owner'); - $table->integer('expiration'); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('cache'); - Schema::dropIfExists('cache_locks'); - } -}; diff --git a/database/migrations-laravel/0001_01_01_000002_create_jobs_table.php b/database/migrations-laravel/0001_01_01_000002_create_jobs_table.php deleted file mode 100644 index 0dcb8c4..0000000 --- a/database/migrations-laravel/0001_01_01_000002_create_jobs_table.php +++ /dev/null @@ -1,59 +0,0 @@ -id(); - $table->string('queue')->index(); - $table->longText('payload'); - $table->unsignedTinyInteger('attempts'); - $table->unsignedInteger('reserved_at')->nullable(); - $table->unsignedInteger('available_at'); - $table->unsignedInteger('created_at'); - }); - - Schema::create('job_batches', function (Blueprint $table) { - $table->string('id')->primary(); - $table->string('name'); - $table->integer('total_jobs'); - $table->integer('pending_jobs'); - $table->integer('failed_jobs'); - $table->longText('failed_job_ids'); - $table->mediumText('options')->nullable(); - $table->integer('cancelled_at')->nullable(); - $table->integer('created_at'); - $table->integer('finished_at')->nullable(); - }); - - Schema::create('failed_jobs', function (Blueprint $table) { - $table->id(); - $table->string('uuid')->unique(); - $table->text('connection'); - $table->text('queue'); - $table->longText('payload'); - $table->longText('exception'); - $table->timestamp('failed_at')->useCurrent(); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('jobs'); - Schema::dropIfExists('job_batches'); - Schema::dropIfExists('failed_jobs'); - } -}; diff --git a/database/migrations-laravel/2024_03_13_210031_create_personal_access_tokens_table.php b/database/migrations-laravel/2024_03_13_210031_create_personal_access_tokens_table.php deleted file mode 100644 index 8dd13c9..0000000 --- a/database/migrations-laravel/2024_03_13_210031_create_personal_access_tokens_table.php +++ /dev/null @@ -1,35 +0,0 @@ -id(); - $table->morphs('tokenable'); - $table->string('name'); - $table->string('token', 64)->unique(); - $table->text('abilities')->nullable(); - $table->timestamp('last_used_at')->nullable(); - $table->timestamp('expires_at')->nullable(); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('personal_access_tokens'); - } -}; diff --git a/database/migrations-package/2020_01_02_100001_create_matrix_backlogs_table.php b/database/migrations-package/2020_01_02_100001_create_matrix_backlogs_table.php deleted file mode 100644 index 32403e4..0000000 --- a/database/migrations-package/2020_01_02_100001_create_matrix_backlogs_table.php +++ /dev/null @@ -1,168 +0,0 @@ -uuid('id')->primary(); - - // IDs - - $table->uuid('created_by_id')->nullable()->index(); - $table->uuid('modified_by_id')->nullable()->index(); - $table->uuid('owned_by_id')->nullable()->index(); - $table->uuid('parent_id')->nullable()->index(); - $table->string('backlog_type')->nullable()->index(); - $table->uuid('board_id')->nullable()->index(); - $table->uuid('epic_id')->nullable()->index(); - $table->uuid('flow_id')->nullable()->index(); - $table->uuid('matrix_id')->nullable()->index(); - $table->uuid('milestone_id')->nullable()->index(); - $table->uuid('note_id')->nullable()->index(); - $table->uuid('project_id')->nullable()->index(); - $table->uuid('release_id')->nullable()->index(); - $table->uuid('roadmap_id')->nullable()->index(); - $table->uuid('source_id')->nullable()->index(); - $table->uuid('sprint_id')->nullable()->index(); - $table->uuid('tag_id')->nullable()->index(); - $table->uuid('team_id')->nullable()->index(); - $table->uuid('ticket_id')->nullable()->index(); - $table->uuid('version_id')->nullable()->index(); - - // Dates - - $table->timestamps(); - - $table->softDeletes(); - - $table->dateTime('start_at')->nullable()->index(); - $table->dateTime('planned_start_at')->nullable(); - $table->dateTime('end_at')->nullable()->index(); - $table->dateTime('planned_end_at')->nullable(); - $table->dateTime('canceled_at')->nullable(); - $table->dateTime('closed_at')->nullable()->index(); - $table->dateTime('embargo_at')->nullable(); - $table->dateTime('fixed_at')->nullable(); - $table->dateTime('postponed_at')->nullable(); - $table->dateTime('published_at')->nullable(); - $table->dateTime('released_at')->nullable(); - $table->dateTime('resumed_at')->nullable(); - $table->dateTime('resolved_at')->nullable()->index(); - $table->dateTime('suspended_at')->nullable(); - - // Permissions - - $table->bigInteger('gids')->default(0)->unsigned(); - $table->tinyInteger('po')->default(0)->unsigned(); - $table->tinyInteger('pg')->default(0)->unsigned(); - $table->tinyInteger('pw')->default(0)->unsigned(); - $table->boolean('only_admin')->default(0); - $table->boolean('only_user')->default(0); - $table->boolean('only_guest')->default(0); - $table->boolean('allow_public')->default(0); - - // Status - - $table->bigInteger('status')->default(0)->unsigned(); - $table->bigInteger('rank')->default(0); - $table->bigInteger('size')->default(0); - - // Matrix - - $table->json('matrix')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->bigInteger('x')->nullable(); - $table->bigInteger('y')->nullable(); - $table->bigInteger('z')->nullable(); - $table->decimal('r', 65, 10)->nullable(); - $table->decimal('theta', 10, 6)->nullable(); - $table->decimal('rho', 10, 6)->nullable(); - $table->decimal('phi', 10, 6)->nullable(); - $table->decimal('elevation', 65, 10)->nullable(); - $table->decimal('latitude', 8, 6)->nullable(); - $table->decimal('longitude', 9, 6)->nullable(); - - // Flags - - $table->boolean('active')->default(1)->index(); - $table->boolean('canceled')->default(0); - $table->boolean('closed')->default(0); - $table->boolean('completed')->default(0); - $table->boolean('cron')->default(0)->index(); - $table->boolean('duplicate')->default(0); - $table->boolean('fixed')->default(0); - $table->boolean('flagged')->default(0); - $table->boolean('internal')->default(0); - $table->boolean('locked')->default(0); - $table->boolean('pending')->default(0); - $table->boolean('planned')->default(0); - $table->boolean('prioritized')->default(0); - $table->boolean('problem')->default(0); - $table->boolean('published')->default(0); - $table->boolean('released')->default(0); - $table->boolean('retired')->default(0); - $table->boolean('resolved')->default(0); - $table->boolean('special')->default(0); - $table->boolean('suspended')->default(0); - $table->boolean('unknown')->default(0); - - // Columns - - $table->string('label', 128)->default(''); - $table->string('title', 255)->default(''); - $table->string('byline', 255)->default(''); - $table->string('slug', 128)->nullable()->index(); - $table->string('url', 512)->default(''); - $table->string('description', 512)->default(''); - $table->string('introduction', 512)->default(''); - $table->mediumText('content')->nullable(); - $table->mediumText('summary')->nullable(); - - // Ui - - $table->string('icon', 128)->default(''); - $table->string('image', 512)->default(''); - $table->string('avatar', 512)->default(''); - $table->json('ui')->nullable()->default(new Expression('(JSON_OBJECT())')); - - // JSON - - $table->json('assets')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('backlog')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('board')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('flow')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('meta')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('notes')->nullable()->default(new Expression('(JSON_ARRAY())'))->comment('Array of note objects'); - $table->json('options')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('roadmap')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('sources')->nullable()->default(new Expression('(JSON_OBJECT())')); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('matrix_backlogs'); - } -}; diff --git a/database/migrations-package/2020_01_02_100001_create_matrix_boards_table.php b/database/migrations-package/2020_01_02_100001_create_matrix_boards_table.php deleted file mode 100644 index 883da40..0000000 --- a/database/migrations-package/2020_01_02_100001_create_matrix_boards_table.php +++ /dev/null @@ -1,166 +0,0 @@ -uuid('id')->primary(); - - // IDs - - $table->uuid('created_by_id')->nullable()->index(); - $table->uuid('modified_by_id')->nullable()->index(); - $table->uuid('owned_by_id')->nullable()->index(); - $table->uuid('parent_id')->nullable()->index(); - $table->uuid('backlog_id')->nullable()->index(); - $table->string('board_type')->nullable()->index(); - $table->uuid('epic_id')->nullable()->index(); - $table->uuid('flow_id')->nullable()->index(); - $table->uuid('matrix_id')->nullable()->index(); - $table->uuid('milestone_id')->nullable()->index(); - $table->uuid('note_id')->nullable()->index(); - $table->uuid('project_id')->nullable()->index(); - $table->uuid('release_id')->nullable()->index(); - $table->uuid('roadmap_id')->nullable()->index(); - $table->uuid('source_id')->nullable()->index(); - $table->uuid('sprint_id')->nullable()->index(); - $table->uuid('tag_id')->nullable()->index(); - $table->uuid('team_id')->nullable()->index(); - $table->uuid('ticket_id')->nullable()->index(); - $table->uuid('version_id')->nullable()->index(); - - // Dates - - $table->timestamps(); - - $table->softDeletes(); - - $table->dateTime('start_at')->nullable()->index(); - $table->dateTime('planned_start_at')->nullable(); - $table->dateTime('end_at')->nullable()->index(); - $table->dateTime('planned_end_at')->nullable(); - $table->dateTime('canceled_at')->nullable(); - $table->dateTime('closed_at')->nullable()->index(); - $table->dateTime('embargo_at')->nullable(); - $table->dateTime('fixed_at')->nullable(); - $table->dateTime('postponed_at')->nullable(); - $table->dateTime('published_at')->nullable(); - $table->dateTime('released_at')->nullable(); - $table->dateTime('resumed_at')->nullable(); - $table->dateTime('resolved_at')->nullable()->index(); - $table->dateTime('suspended_at')->nullable(); - - // Permissions - - $table->bigInteger('gids')->default(0)->unsigned(); - $table->tinyInteger('po')->default(0)->unsigned(); - $table->tinyInteger('pg')->default(0)->unsigned(); - $table->tinyInteger('pw')->default(0)->unsigned(); - $table->boolean('only_admin')->default(0); - $table->boolean('only_user')->default(0); - $table->boolean('only_guest')->default(0); - $table->boolean('allow_public')->default(0); - - // Status - - $table->bigInteger('status')->default(0)->unsigned(); - $table->bigInteger('rank')->default(0); - $table->bigInteger('size')->default(0); - - // Matrix - - $table->json('matrix')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->bigInteger('x')->nullable(); - $table->bigInteger('y')->nullable(); - $table->bigInteger('z')->nullable(); - $table->decimal('r', 65, 10)->nullable(); - $table->decimal('theta', 10, 6)->nullable(); - $table->decimal('rho', 10, 6)->nullable(); - $table->decimal('phi', 10, 6)->nullable(); - $table->decimal('elevation', 65, 10)->nullable(); - $table->decimal('latitude', 8, 6)->nullable(); - $table->decimal('longitude', 9, 6)->nullable(); - - // Flags - - $table->boolean('active')->default(1)->index(); - $table->boolean('canceled')->default(0); - $table->boolean('closed')->default(0); - $table->boolean('completed')->default(0); - $table->boolean('cron')->default(0)->index(); - $table->boolean('duplicate')->default(0); - $table->boolean('fixed')->default(0); - $table->boolean('flagged')->default(0); - $table->boolean('internal')->default(0); - $table->boolean('locked')->default(0); - $table->boolean('pending')->default(0); - $table->boolean('planned')->default(0); - $table->boolean('problem')->default(0); - $table->boolean('published')->default(0); - $table->boolean('released')->default(0); - $table->boolean('retired')->default(0); - $table->boolean('resolved')->default(0); - $table->boolean('suspended')->default(0); - $table->boolean('unknown')->default(0); - - // Columns - - $table->string('label', 128)->default(''); - $table->string('title', 255)->default(''); - $table->string('byline', 255)->default(''); - $table->string('slug', 128)->nullable()->index(); - $table->string('url', 512)->default(''); - $table->string('description', 512)->default(''); - $table->string('introduction', 512)->default(''); - $table->mediumText('content')->nullable(); - $table->mediumText('summary')->nullable(); - - // Ui - - $table->string('icon', 128)->default(''); - $table->string('image', 512)->default(''); - $table->string('avatar', 512)->default(''); - $table->json('ui')->nullable()->default(new Expression('(JSON_OBJECT())')); - - // JSON - - $table->json('assets')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('backlog')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('board')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('flow')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('meta')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('notes')->nullable()->default(new Expression('(JSON_ARRAY())'))->comment('Array of note objects'); - $table->json('options')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('roadmap')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('sources')->nullable()->default(new Expression('(JSON_OBJECT())')); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('matrix_boards'); - } -}; diff --git a/database/migrations-package/2020_01_02_100001_create_matrix_epics_table.php b/database/migrations-package/2020_01_02_100001_create_matrix_epics_table.php deleted file mode 100644 index 1c0b96b..0000000 --- a/database/migrations-package/2020_01_02_100001_create_matrix_epics_table.php +++ /dev/null @@ -1,166 +0,0 @@ -uuid('id')->primary(); - - // IDs - - $table->uuid('created_by_id')->nullable()->index(); - $table->uuid('modified_by_id')->nullable()->index(); - $table->uuid('owned_by_id')->nullable()->index(); - $table->uuid('parent_id')->nullable()->index(); - $table->string('epic_type')->nullable()->index(); - $table->uuid('backlog_id')->nullable()->index(); - $table->uuid('board_id')->nullable()->index(); - $table->uuid('flow_id')->nullable()->index(); - $table->uuid('matrix_id')->nullable()->index(); - $table->uuid('milestone_id')->nullable()->index(); - $table->uuid('note_id')->nullable()->index(); - $table->uuid('project_id')->nullable()->index(); - $table->uuid('release_id')->nullable()->index(); - $table->uuid('roadmap_id')->nullable()->index(); - $table->uuid('source_id')->nullable()->index(); - $table->uuid('sprint_id')->nullable()->index(); - $table->uuid('tag_id')->nullable()->index(); - $table->uuid('team_id')->nullable()->index(); - $table->uuid('ticket_id')->nullable()->index(); - $table->uuid('version_id')->nullable()->index(); - - // Dates - - $table->timestamps(); - - $table->softDeletes(); - - $table->dateTime('start_at')->nullable()->index(); - $table->dateTime('planned_start_at')->nullable(); - $table->dateTime('end_at')->nullable()->index(); - $table->dateTime('planned_end_at')->nullable(); - $table->dateTime('canceled_at')->nullable(); - $table->dateTime('closed_at')->nullable()->index(); - $table->dateTime('embargo_at')->nullable(); - $table->dateTime('fixed_at')->nullable(); - $table->dateTime('postponed_at')->nullable(); - $table->dateTime('published_at')->nullable(); - $table->dateTime('released_at')->nullable(); - $table->dateTime('resumed_at')->nullable(); - $table->dateTime('resolved_at')->nullable()->index(); - $table->dateTime('suspended_at')->nullable(); - - // Permissions - - $table->bigInteger('gids')->default(0)->unsigned(); - $table->tinyInteger('po')->default(0)->unsigned(); - $table->tinyInteger('pg')->default(0)->unsigned(); - $table->tinyInteger('pw')->default(0)->unsigned(); - $table->boolean('only_admin')->default(0); - $table->boolean('only_user')->default(0); - $table->boolean('only_guest')->default(0); - $table->boolean('allow_public')->default(0); - - // Status - - $table->bigInteger('status')->default(0)->unsigned(); - $table->bigInteger('rank')->default(0); - $table->bigInteger('size')->default(0); - - // Matrix - - $table->json('matrix')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->bigInteger('x')->nullable(); - $table->bigInteger('y')->nullable(); - $table->bigInteger('z')->nullable(); - $table->decimal('r', 65, 10)->nullable(); - $table->decimal('theta', 10, 6)->nullable(); - $table->decimal('rho', 10, 6)->nullable(); - $table->decimal('phi', 10, 6)->nullable(); - $table->decimal('elevation', 65, 10)->nullable(); - $table->decimal('latitude', 8, 6)->nullable(); - $table->decimal('longitude', 9, 6)->nullable(); - - // Flags - - $table->boolean('active')->default(1)->index(); - $table->boolean('canceled')->default(0); - $table->boolean('closed')->default(0); - $table->boolean('completed')->default(0); - $table->boolean('cron')->default(0)->index(); - $table->boolean('duplicate')->default(0); - $table->boolean('fixed')->default(0); - $table->boolean('flagged')->default(0); - $table->boolean('internal')->default(0); - $table->boolean('locked')->default(0); - $table->boolean('pending')->default(0); - $table->boolean('planned')->default(0); - $table->boolean('problem')->default(0); - $table->boolean('published')->default(0); - $table->boolean('released')->default(0); - $table->boolean('retired')->default(0); - $table->boolean('resolved')->default(0); - $table->boolean('suspended')->default(0); - $table->boolean('unknown')->default(0); - - // Columns - - $table->string('label', 128)->default(''); - $table->string('title', 255)->default(''); - $table->string('byline', 255)->default(''); - $table->string('slug', 128)->nullable()->index(); - $table->string('url', 512)->default(''); - $table->string('description', 512)->default(''); - $table->string('introduction', 512)->default(''); - $table->mediumText('content')->nullable(); - $table->mediumText('summary')->nullable(); - - // Ui - - $table->string('icon', 128)->default(''); - $table->string('image', 512)->default(''); - $table->string('avatar', 512)->default(''); - $table->json('ui')->nullable()->default(new Expression('(JSON_OBJECT())')); - - // JSON - - $table->json('assets')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('backlog')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('board')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('flow')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('meta')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('notes')->nullable()->default(new Expression('(JSON_ARRAY())'))->comment('Array of note objects'); - $table->json('options')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('roadmap')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('sources')->nullable()->default(new Expression('(JSON_OBJECT())')); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('matrix_epics'); - } -}; diff --git a/database/migrations-package/2020_01_02_100001_create_matrix_flows_table.php b/database/migrations-package/2020_01_02_100001_create_matrix_flows_table.php deleted file mode 100644 index 292766e..0000000 --- a/database/migrations-package/2020_01_02_100001_create_matrix_flows_table.php +++ /dev/null @@ -1,141 +0,0 @@ -uuid('id')->primary(); - - // IDs - - $table->uuid('created_by_id')->nullable()->index(); - $table->uuid('modified_by_id')->nullable()->index(); - $table->uuid('owned_by_id')->nullable()->index(); - $table->uuid('parent_id')->nullable()->index(); - $table->string('flow_type')->nullable()->index(); - $table->uuid('matrix_id')->nullable()->index(); - $table->uuid('note_id')->nullable()->index(); - $table->uuid('tag_id')->nullable()->index(); - $table->uuid('team_id')->nullable()->index(); - - // Dates - - $table->timestamps(); - - $table->softDeletes(); - - $table->dateTime('start_at')->nullable()->index(); - $table->dateTime('planned_start_at')->nullable(); - $table->dateTime('end_at')->nullable()->index(); - $table->dateTime('planned_end_at')->nullable(); - $table->dateTime('embargo_at')->nullable(); - $table->dateTime('postponed_at')->nullable(); - $table->dateTime('resumed_at')->nullable(); - $table->dateTime('suspended_at')->nullable(); - - // Permissions - - $table->bigInteger('gids')->default(0)->unsigned(); - $table->tinyInteger('po')->default(0)->unsigned(); - $table->tinyInteger('pg')->default(0)->unsigned(); - $table->tinyInteger('pw')->default(0)->unsigned(); - $table->boolean('only_admin')->default(0); - $table->boolean('only_user')->default(0); - $table->boolean('only_guest')->default(0); - $table->boolean('allow_public')->default(0); - - // Status - - $table->bigInteger('status')->default(0)->unsigned(); - $table->bigInteger('rank')->default(0); - $table->bigInteger('size')->default(0); - - // Matrix - - $table->json('matrix')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->bigInteger('x')->nullable(); - $table->bigInteger('y')->nullable(); - $table->bigInteger('z')->nullable(); - $table->decimal('r', 65, 10)->nullable(); - $table->decimal('theta', 10, 6)->nullable(); - $table->decimal('rho', 10, 6)->nullable(); - $table->decimal('phi', 10, 6)->nullable(); - $table->decimal('elevation', 65, 10)->nullable(); - $table->decimal('latitude', 8, 6)->nullable(); - $table->decimal('longitude', 9, 6)->nullable(); - - // Flags - - $table->boolean('active')->default(1)->index(); - $table->boolean('cron')->default(0)->index(); - $table->boolean('flagged')->default(0); - $table->boolean('internal')->default(0); - $table->boolean('locked')->default(0); - $table->boolean('pending')->default(0); - $table->boolean('planned')->default(0); - $table->boolean('problem')->default(0); - $table->boolean('retired')->default(0); - $table->boolean('suspended')->default(0); - $table->boolean('unknown')->default(0); - - // Columns - - $table->string('label', 128)->default(''); - $table->string('title', 255)->default(''); - $table->string('byline', 255)->default(''); - $table->string('slug', 128)->nullable()->index(); - $table->string('url', 512)->default(''); - $table->string('description', 512)->default(''); - $table->string('introduction', 512)->default(''); - $table->mediumText('content')->nullable(); - $table->mediumText('summary')->nullable(); - - // Ui - - $table->string('icon', 128)->default(''); - $table->string('image', 512)->default(''); - $table->string('avatar', 512)->default(''); - $table->json('ui')->nullable()->default(new Expression('(JSON_OBJECT())')); - - // JSON - - $table->json('assets')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('flow')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('meta')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('notes')->nullable()->default(new Expression('(JSON_ARRAY())'))->comment('Array of note objects'); - $table->json('options')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('backlog')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('board')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('roadmap')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('sources')->nullable()->default(new Expression('(JSON_OBJECT())')); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('matrix_flows'); - } -}; diff --git a/database/migrations-package/2020_01_02_100001_create_matrix_matrices_table.php b/database/migrations-package/2020_01_02_100001_create_matrix_matrices_table.php deleted file mode 100644 index c548447..0000000 --- a/database/migrations-package/2020_01_02_100001_create_matrix_matrices_table.php +++ /dev/null @@ -1,139 +0,0 @@ -uuid('id')->primary(); - - // IDs - - $table->uuid('created_by_id')->nullable()->index(); - $table->uuid('modified_by_id')->nullable()->index(); - $table->uuid('owned_by_id')->nullable()->index(); - $table->uuid('parent_id')->nullable()->index(); - $table->string('matrix_type')->nullable()->index(); - $table->uuid('matrix_id')->nullable()->index(); - - // Dates - - $table->timestamps(); - - $table->softDeletes(); - - $table->dateTime('start_at')->nullable()->index(); - $table->dateTime('planned_start_at')->nullable(); - $table->dateTime('end_at')->nullable()->index(); - $table->dateTime('planned_end_at')->nullable(); - $table->dateTime('canceled_at')->nullable(); - $table->dateTime('closed_at')->nullable()->index(); - $table->dateTime('embargo_at')->nullable(); - $table->dateTime('postponed_at')->nullable(); - $table->dateTime('resumed_at')->nullable(); - $table->dateTime('suspended_at')->nullable(); - - // Permissions - - $table->bigInteger('gids')->default(0)->unsigned(); - $table->tinyInteger('po')->default(0)->unsigned(); - $table->tinyInteger('pg')->default(0)->unsigned(); - $table->tinyInteger('pw')->default(0)->unsigned(); - $table->boolean('only_admin')->default(0); - $table->boolean('only_user')->default(0); - $table->boolean('only_guest')->default(0); - $table->boolean('allow_public')->default(0); - - // Status - - $table->bigInteger('status')->default(0)->unsigned(); - $table->bigInteger('rank')->default(0); - $table->bigInteger('size')->default(0); - - // Matrix - - $table->json('matrix')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->bigInteger('x')->nullable(); - $table->bigInteger('y')->nullable(); - $table->bigInteger('z')->nullable(); - $table->decimal('r', 65, 10)->nullable(); - $table->decimal('theta', 10, 6)->nullable(); - $table->decimal('rho', 10, 6)->nullable(); - $table->decimal('phi', 10, 6)->nullable(); - $table->decimal('elevation', 65, 10)->nullable(); - $table->decimal('latitude', 8, 6)->nullable(); - $table->decimal('longitude', 9, 6)->nullable(); - - // Flags - - $table->boolean('active')->default(1)->index(); - $table->boolean('canceled')->default(0); - $table->boolean('closed')->default(0); - $table->boolean('completed')->default(0); - $table->boolean('cron')->default(0)->index(); - $table->boolean('flagged')->default(0); - $table->boolean('internal')->default(0); - $table->boolean('locked')->default(0); - $table->boolean('pending')->default(0); - $table->boolean('planned')->default(0); - $table->boolean('problem')->default(0); - $table->boolean('retired')->default(0); - $table->boolean('suspended')->default(0); - $table->boolean('unknown')->default(0); - - // Columns - - $table->string('label', 128)->default(''); - $table->string('title', 255)->default(''); - $table->string('byline', 255)->default(''); - $table->string('slug', 128)->nullable()->index(); - $table->string('url', 512)->default(''); - $table->string('description', 512)->default(''); - $table->string('introduction', 512)->default(''); - $table->mediumText('content')->nullable(); - $table->mediumText('summary')->nullable(); - - // Ui - - $table->string('icon', 128)->default(''); - $table->string('image', 512)->default(''); - $table->string('avatar', 512)->default(''); - $table->json('ui')->nullable()->default(new Expression('(JSON_OBJECT())')); - - // JSON - - $table->json('assets')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('meta')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('notes')->nullable()->default(new Expression('(JSON_ARRAY())'))->comment('Array of note objects'); - $table->json('options')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('sources')->nullable()->default(new Expression('(JSON_OBJECT())')); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('matrix_matrices'); - } -}; diff --git a/database/migrations-package/2020_01_02_100001_create_matrix_milestones_table.php b/database/migrations-package/2020_01_02_100001_create_matrix_milestones_table.php deleted file mode 100644 index a959018..0000000 --- a/database/migrations-package/2020_01_02_100001_create_matrix_milestones_table.php +++ /dev/null @@ -1,166 +0,0 @@ -uuid('id')->primary(); - - // IDs - - $table->uuid('created_by_id')->nullable()->index(); - $table->uuid('modified_by_id')->nullable()->index(); - $table->uuid('owned_by_id')->nullable()->index(); - $table->uuid('parent_id')->nullable()->index(); - $table->string('milestone_type')->nullable()->index(); - $table->uuid('backlog_id')->nullable()->index(); - $table->uuid('board_id')->nullable()->index(); - $table->uuid('epic_id')->nullable()->index(); - $table->uuid('flow_id')->nullable()->index(); - $table->uuid('matrix_id')->nullable()->index(); - $table->uuid('note_id')->nullable()->index(); - $table->uuid('project_id')->nullable()->index(); - $table->uuid('release_id')->nullable()->index(); - $table->uuid('roadmap_id')->nullable()->index(); - $table->uuid('source_id')->nullable()->index(); - $table->uuid('sprint_id')->nullable()->index(); - $table->uuid('tag_id')->nullable()->index(); - $table->uuid('team_id')->nullable()->index(); - $table->uuid('ticket_id')->nullable()->index(); - $table->uuid('version_id')->nullable()->index(); - - // Dates - - $table->timestamps(); - - $table->softDeletes(); - - $table->dateTime('start_at')->nullable()->index(); - $table->dateTime('planned_start_at')->nullable(); - $table->dateTime('end_at')->nullable()->index(); - $table->dateTime('planned_end_at')->nullable(); - $table->dateTime('canceled_at')->nullable(); - $table->dateTime('closed_at')->nullable()->index(); - $table->dateTime('embargo_at')->nullable(); - $table->dateTime('fixed_at')->nullable(); - $table->dateTime('postponed_at')->nullable(); - $table->dateTime('published_at')->nullable(); - $table->dateTime('released_at')->nullable(); - $table->dateTime('resolved_at')->nullable()->index(); - $table->dateTime('resumed_at')->nullable(); - $table->dateTime('suspended_at')->nullable(); - - // Permissions - - $table->bigInteger('gids')->default(0)->unsigned(); - $table->tinyInteger('po')->default(0)->unsigned(); - $table->tinyInteger('pg')->default(0)->unsigned(); - $table->tinyInteger('pw')->default(0)->unsigned(); - $table->boolean('only_admin')->default(0); - $table->boolean('only_user')->default(0); - $table->boolean('only_guest')->default(0); - $table->boolean('allow_public')->default(0); - - // Status - - $table->bigInteger('status')->default(0)->unsigned(); - $table->bigInteger('rank')->default(0); - $table->bigInteger('size')->default(0); - - // Matrix - - $table->json('matrix')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->bigInteger('x')->nullable(); - $table->bigInteger('y')->nullable(); - $table->bigInteger('z')->nullable(); - $table->decimal('r', 65, 10)->nullable(); - $table->decimal('theta', 10, 6)->nullable(); - $table->decimal('rho', 10, 6)->nullable(); - $table->decimal('phi', 10, 6)->nullable(); - $table->decimal('elevation', 65, 10)->nullable(); - $table->decimal('latitude', 8, 6)->nullable(); - $table->decimal('longitude', 9, 6)->nullable(); - - // Flags - - $table->boolean('active')->default(1)->index(); - $table->boolean('canceled')->default(0); - $table->boolean('closed')->default(0); - $table->boolean('completed')->default(0); - $table->boolean('cron')->default(0)->index(); - $table->boolean('duplicate')->default(0); - $table->boolean('fixed')->default(0); - $table->boolean('flagged')->default(0); - $table->boolean('internal')->default(0); - $table->boolean('locked')->default(0); - $table->boolean('pending')->default(0); - $table->boolean('planned')->default(0); - $table->boolean('problem')->default(0); - $table->boolean('published')->default(0); - $table->boolean('released')->default(0); - $table->boolean('retired')->default(0); - $table->boolean('resolved')->default(0); - $table->boolean('suspended')->default(0); - $table->boolean('unknown')->default(0); - - // Columns - - $table->string('label', 128)->default(''); - $table->string('title', 255)->default(''); - $table->string('byline', 255)->default(''); - $table->string('slug', 128)->nullable()->index(); - $table->string('url', 512)->default(''); - $table->string('description', 512)->default(''); - $table->string('introduction', 512)->default(''); - $table->mediumText('content')->nullable(); - $table->mediumText('summary')->nullable(); - - // Ui - - $table->string('icon', 128)->default(''); - $table->string('image', 512)->default(''); - $table->string('avatar', 512)->default(''); - $table->json('ui')->nullable()->default(new Expression('(JSON_OBJECT())')); - - // JSON - - $table->json('assets')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('backlog')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('board')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('flow')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('meta')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('notes')->nullable()->default(new Expression('(JSON_ARRAY())'))->comment('Array of note objects'); - $table->json('options')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('roadmap')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('sources')->nullable()->default(new Expression('(JSON_OBJECT())')); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('matrix_milestones'); - } -}; diff --git a/database/migrations-package/2020_01_02_100001_create_matrix_notes_table.php b/database/migrations-package/2020_01_02_100001_create_matrix_notes_table.php deleted file mode 100644 index 2bf60fa..0000000 --- a/database/migrations-package/2020_01_02_100001_create_matrix_notes_table.php +++ /dev/null @@ -1,126 +0,0 @@ -uuid('id')->primary(); - - // IDs - - $table->uuid('created_by_id')->nullable()->index(); - $table->uuid('modified_by_id')->nullable()->index(); - $table->uuid('owned_by_id')->nullable()->index(); - $table->uuid('parent_id')->nullable()->index(); - $table->string('note_type')->nullable()->index(); - $table->uuid('matrix_id')->nullable()->index(); - $table->uuid('tag_id')->nullable()->index(); - - // Dates - - $table->timestamps(); - - $table->softDeletes(); - - // Permissions - - $table->bigInteger('gids')->default(0)->unsigned(); - $table->tinyInteger('po')->default(0)->unsigned(); - $table->tinyInteger('pg')->default(0)->unsigned(); - $table->tinyInteger('pw')->default(0)->unsigned(); - $table->boolean('only_admin')->default(0); - $table->boolean('only_user')->default(0); - $table->boolean('only_guest')->default(0); - $table->boolean('allow_public')->default(0); - - // Status - - $table->bigInteger('status')->default(0)->unsigned(); - $table->bigInteger('rank')->default(0); - $table->bigInteger('size')->default(0); - - // Matrix - - $table->json('matrix')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->bigInteger('x')->nullable(); - $table->bigInteger('y')->nullable(); - $table->bigInteger('z')->nullable(); - $table->decimal('r', 65, 10)->nullable(); - $table->decimal('theta', 10, 6)->nullable(); - $table->decimal('rho', 10, 6)->nullable(); - $table->decimal('phi', 10, 6)->nullable(); - $table->decimal('elevation', 65, 10)->nullable(); - $table->decimal('latitude', 8, 6)->nullable(); - $table->decimal('longitude', 9, 6)->nullable(); - - // Flags - - $table->boolean('active')->default(1)->index(); - $table->boolean('canceled')->default(0); - $table->boolean('closed')->default(0); - $table->boolean('completed')->default(0); - $table->boolean('flagged')->default(0); - $table->boolean('internal')->default(0); - $table->boolean('locked')->default(0); - $table->boolean('pending')->default(0); - $table->boolean('planned')->default(0); - $table->boolean('problem')->default(0); - $table->boolean('unknown')->default(0); - - // Columns - - $table->string('label', 128)->default(''); - $table->string('title', 255)->default(''); - $table->string('byline', 255)->default(''); - $table->string('slug', 128)->nullable()->index(); - $table->string('url', 512)->default(''); - $table->string('description', 512)->default(''); - $table->string('introduction', 512)->default(''); - $table->mediumText('content')->nullable(); - $table->mediumText('summary')->nullable(); - - // Ui - - $table->string('icon', 128)->default(''); - $table->string('image', 512)->default(''); - $table->string('avatar', 512)->default(''); - $table->json('ui')->nullable()->default(new Expression('(JSON_OBJECT())')); - - // JSON - - $table->json('assets')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('meta')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('notes')->nullable()->default(new Expression('(JSON_ARRAY())'))->comment('Array of note objects'); - $table->json('options')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('sources')->nullable()->default(new Expression('(JSON_OBJECT())')); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('matrix_notes'); - } -}; diff --git a/database/migrations-package/2020_01_02_100001_create_matrix_projects_table.php b/database/migrations-package/2020_01_02_100001_create_matrix_projects_table.php deleted file mode 100644 index ed6b18e..0000000 --- a/database/migrations-package/2020_01_02_100001_create_matrix_projects_table.php +++ /dev/null @@ -1,168 +0,0 @@ -uuid('id')->primary(); - - // IDs - - $table->uuid('created_by_id')->nullable()->index(); - $table->uuid('modified_by_id')->nullable()->index(); - $table->uuid('owned_by_id')->nullable()->index(); - $table->uuid('parent_id')->nullable()->index(); - $table->string('project_type')->nullable()->index(); - $table->uuid('backlog_id')->nullable()->index(); - $table->uuid('board_id')->nullable()->index(); - $table->uuid('epic_id')->nullable()->index(); - $table->uuid('flow_id')->nullable()->index(); - $table->uuid('matrix_id')->nullable()->index(); - $table->uuid('milestone_id')->nullable()->index(); - $table->uuid('note_id')->nullable()->index(); - $table->uuid('release_id')->nullable()->index(); - $table->uuid('roadmap_id')->nullable()->index(); - $table->uuid('source_id')->nullable()->index(); - $table->uuid('sprint_id')->nullable()->index(); - $table->uuid('tag_id')->nullable()->index(); - $table->uuid('team_id')->nullable()->index(); - $table->uuid('ticket_id')->nullable()->index(); - $table->uuid('version_id')->nullable()->index(); - - // Dates - - $table->timestamps(); - - $table->softDeletes(); - - $table->dateTime('start_at')->nullable()->index(); - $table->dateTime('planned_start_at')->nullable(); - $table->dateTime('end_at')->nullable()->index(); - $table->dateTime('planned_end_at')->nullable(); - $table->dateTime('canceled_at')->nullable(); - $table->dateTime('closed_at')->nullable()->index(); - $table->dateTime('embargo_at')->nullable(); - $table->dateTime('postponed_at')->nullable(); - $table->dateTime('published_at')->nullable(); - $table->dateTime('released_at')->nullable(); - $table->dateTime('resumed_at')->nullable(); - $table->dateTime('resolved_at')->nullable()->index(); - $table->dateTime('suspended_at')->nullable(); - - // Permissions - - $table->bigInteger('gids')->default(0)->unsigned(); - $table->tinyInteger('po')->default(0)->unsigned(); - $table->tinyInteger('pg')->default(0)->unsigned(); - $table->tinyInteger('pw')->default(0)->unsigned(); - $table->boolean('only_admin')->default(0); - $table->boolean('only_user')->default(0); - $table->boolean('only_guest')->default(0); - $table->boolean('allow_public')->default(0); - - // Status - - $table->bigInteger('status')->default(0)->unsigned(); - $table->bigInteger('rank')->default(0); - $table->bigInteger('size')->default(0); - - // Matrix - - $table->json('matrix')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->bigInteger('x')->nullable(); - $table->bigInteger('y')->nullable(); - $table->bigInteger('z')->nullable(); - $table->decimal('r', 65, 10)->nullable(); - $table->decimal('theta', 10, 6)->nullable(); - $table->decimal('rho', 10, 6)->nullable(); - $table->decimal('phi', 10, 6)->nullable(); - $table->decimal('elevation', 65, 10)->nullable(); - $table->decimal('latitude', 8, 6)->nullable(); - $table->decimal('longitude', 9, 6)->nullable(); - - // Flags - - $table->boolean('active')->default(1)->index(); - $table->boolean('canceled')->default(0); - $table->boolean('closed')->default(0); - $table->boolean('completed')->default(0); - $table->boolean('cron')->default(0)->index(); - $table->boolean('duplicate')->default(0); - $table->boolean('fixed')->default(0); - $table->boolean('flagged')->default(0); - $table->boolean('internal')->default(0); - $table->boolean('locked')->default(0); - $table->boolean('pending')->default(0); - $table->boolean('planned')->default(0); - $table->boolean('problem')->default(0); - $table->boolean('published')->default(0); - $table->boolean('released')->default(0); - $table->boolean('retired')->default(0); - $table->boolean('resolved')->default(0); - $table->boolean('suspended')->default(0); - $table->boolean('unknown')->default(0); - - // Columns - - $table->string('label', 128)->default(''); - $table->string('title', 255)->default(''); - $table->string('byline', 255)->default(''); - $table->string('slug', 128)->nullable()->index(); - $table->string('url', 512)->default(''); - $table->string('description', 512)->default(''); - $table->string('introduction', 512)->default(''); - $table->mediumText('content')->nullable(); - $table->mediumText('summary')->nullable(); - $table->string('key', 32)->nullable()->index(); - $table->string('code_name', 128)->nullable()->index(); - - // Ui - - $table->string('icon', 128)->default(''); - $table->string('image', 512)->default(''); - $table->string('avatar', 512)->default(''); - $table->json('ui')->nullable()->default(new Expression('(JSON_OBJECT())')); - - // JSON - - $table->json('assets')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('backlog')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('board')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('flow')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('history')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('meta')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('notes')->nullable()->default(new Expression('(JSON_ARRAY())'))->comment('Array of note objects'); - $table->json('options')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('roadmap')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('sources')->nullable()->default(new Expression('(JSON_OBJECT())')); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('matrix_projects'); - } -}; diff --git a/database/migrations-package/2020_01_02_100001_create_matrix_releases_table.php b/database/migrations-package/2020_01_02_100001_create_matrix_releases_table.php deleted file mode 100644 index f38ef51..0000000 --- a/database/migrations-package/2020_01_02_100001_create_matrix_releases_table.php +++ /dev/null @@ -1,165 +0,0 @@ -uuid('id')->primary(); - - // IDs - - $table->uuid('created_by_id')->nullable()->index(); - $table->uuid('modified_by_id')->nullable()->index(); - $table->uuid('owned_by_id')->nullable()->index(); - $table->uuid('parent_id')->nullable()->index(); - $table->string('release_type')->nullable()->index(); - $table->uuid('backlog_id')->nullable()->index(); - $table->uuid('board_id')->nullable()->index(); - $table->uuid('epic_id')->nullable()->index(); - $table->uuid('flow_id')->nullable()->index(); - $table->uuid('matrix_id')->nullable()->index(); - $table->uuid('milestone_id')->nullable()->index(); - $table->uuid('note_id')->nullable()->index(); - $table->uuid('project_id')->nullable()->index(); - $table->uuid('roadmap_id')->nullable()->index(); - $table->uuid('source_id')->nullable()->index(); - $table->uuid('sprint_id')->nullable()->index(); - $table->uuid('tag_id')->nullable()->index(); - $table->uuid('team_id')->nullable()->index(); - $table->uuid('ticket_id')->nullable()->index(); - $table->uuid('version_id')->nullable()->index(); - - // Dates - - $table->timestamps(); - - $table->softDeletes(); - - $table->dateTime('start_at')->nullable()->index(); - $table->dateTime('planned_start_at')->nullable(); - $table->dateTime('end_at')->nullable()->index(); - $table->dateTime('planned_end_at')->nullable(); - $table->dateTime('canceled_at')->nullable(); - $table->dateTime('closed_at')->nullable()->index(); - $table->dateTime('embargo_at')->nullable(); - $table->dateTime('fixed_at')->nullable(); - $table->dateTime('postponed_at')->nullable(); - $table->dateTime('published_at')->nullable(); - $table->dateTime('released_at')->nullable(); - $table->dateTime('resolved_at')->nullable(); - $table->dateTime('resumed_at')->nullable(); - $table->dateTime('suspended_at')->nullable(); - - // Permissions - - $table->bigInteger('gids')->default(0)->unsigned(); - $table->tinyInteger('po')->default(0)->unsigned(); - $table->tinyInteger('pg')->default(0)->unsigned(); - $table->tinyInteger('pw')->default(0)->unsigned(); - $table->boolean('only_admin')->default(0); - $table->boolean('only_user')->default(0); - $table->boolean('only_guest')->default(0); - $table->boolean('allow_public')->default(0); - - // Status - - $table->bigInteger('status')->default(0)->unsigned(); - $table->bigInteger('rank')->default(0); - $table->bigInteger('size')->default(0); - - // Matrix - - $table->json('matrix')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->bigInteger('x')->nullable(); - $table->bigInteger('y')->nullable(); - $table->bigInteger('z')->nullable(); - $table->decimal('r', 65, 10)->nullable(); - $table->decimal('theta', 10, 6)->nullable(); - $table->decimal('rho', 10, 6)->nullable(); - $table->decimal('phi', 10, 6)->nullable(); - $table->decimal('elevation', 65, 10)->nullable(); - $table->decimal('latitude', 8, 6)->nullable(); - $table->decimal('longitude', 9, 6)->nullable(); - - // Flags - - $table->boolean('active')->default(1)->index(); - $table->boolean('canceled')->default(0); - $table->boolean('closed')->default(0); - $table->boolean('completed')->default(0); - $table->boolean('cron')->default(0)->index(); - $table->boolean('flagged')->default(0); - $table->boolean('fixed')->default(0); - $table->boolean('internal')->default(0); - $table->boolean('locked')->default(0); - $table->boolean('pending')->default(0); - $table->boolean('planned')->default(0); - $table->boolean('problem')->default(0); - $table->boolean('published')->default(0); - $table->boolean('released')->default(0); - $table->boolean('resolved')->default(0); - $table->boolean('retired')->default(0); - $table->boolean('suspended')->default(0); - $table->boolean('unknown')->default(0); - - // Columns - - $table->string('label', 128)->default(''); - $table->string('title', 255)->default(''); - $table->string('byline', 255)->default(''); - $table->string('slug', 128)->nullable()->index(); - $table->string('url', 512)->default(''); - $table->string('description', 512)->default(''); - $table->string('introduction', 512)->default(''); - $table->mediumText('content')->nullable(); - $table->mediumText('summary')->nullable(); - - // Ui - - $table->string('icon', 128)->default(''); - $table->string('image', 512)->default(''); - $table->string('avatar', 512)->default(''); - $table->json('ui')->nullable()->default(new Expression('(JSON_OBJECT())')); - - // JSON - - $table->json('assets')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('backlog')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('board')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('flow')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('meta')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('notes')->nullable()->default(new Expression('(JSON_ARRAY())'))->comment('Array of note objects'); - $table->json('options')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('roadmap')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('sources')->nullable()->default(new Expression('(JSON_OBJECT())')); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('matrix_releases'); - } -}; diff --git a/database/migrations-package/2020_01_02_100001_create_matrix_roadmaps_table.php b/database/migrations-package/2020_01_02_100001_create_matrix_roadmaps_table.php deleted file mode 100644 index 62f479a..0000000 --- a/database/migrations-package/2020_01_02_100001_create_matrix_roadmaps_table.php +++ /dev/null @@ -1,161 +0,0 @@ -uuid('id')->primary(); - - // IDs - - $table->uuid('created_by_id')->nullable()->index(); - $table->uuid('modified_by_id')->nullable()->index(); - $table->uuid('owned_by_id')->nullable()->index(); - $table->uuid('parent_id')->nullable()->index(); - $table->string('roadmap_type')->nullable()->index(); - $table->uuid('backlog_id')->nullable()->index(); - $table->uuid('board_id')->nullable()->index(); - $table->uuid('epic_id')->nullable()->index(); - $table->uuid('flow_id')->nullable()->index(); - $table->uuid('matrix_id')->nullable()->index(); - $table->uuid('milestone_id')->nullable()->index(); - $table->uuid('note_id')->nullable()->index(); - $table->uuid('project_id')->nullable()->index(); - $table->uuid('release_id')->nullable()->index(); - $table->uuid('source_id')->nullable()->index(); - $table->uuid('sprint_id')->nullable()->index(); - $table->uuid('tag_id')->nullable()->index(); - $table->uuid('team_id')->nullable()->index(); - $table->uuid('ticket_id')->nullable()->index(); - $table->uuid('version_id')->nullable()->index(); - - // Dates - - $table->timestamps(); - - $table->softDeletes(); - - $table->dateTime('start_at')->nullable()->index(); - $table->dateTime('planned_start_at')->nullable(); - $table->dateTime('end_at')->nullable()->index(); - $table->dateTime('planned_end_at')->nullable(); - $table->dateTime('canceled_at')->nullable(); - $table->dateTime('closed_at')->nullable()->index(); - $table->dateTime('embargo_at')->nullable(); - $table->dateTime('postponed_at')->nullable(); - $table->dateTime('published_at')->nullable(); - $table->dateTime('released_at')->nullable(); - $table->dateTime('resumed_at')->nullable(); - $table->dateTime('suspended_at')->nullable(); - - // Permissions - - $table->bigInteger('gids')->default(0)->unsigned(); - $table->tinyInteger('po')->default(0)->unsigned(); - $table->tinyInteger('pg')->default(0)->unsigned(); - $table->tinyInteger('pw')->default(0)->unsigned(); - $table->boolean('only_admin')->default(0); - $table->boolean('only_user')->default(0); - $table->boolean('only_guest')->default(0); - $table->boolean('allow_public')->default(0); - - // Status - - $table->bigInteger('status')->default(0)->unsigned(); - $table->bigInteger('rank')->default(0); - $table->bigInteger('size')->default(0); - - // Matrix - - $table->json('matrix')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->bigInteger('x')->nullable(); - $table->bigInteger('y')->nullable(); - $table->bigInteger('z')->nullable(); - $table->decimal('r', 65, 10)->nullable(); - $table->decimal('theta', 10, 6)->nullable(); - $table->decimal('rho', 10, 6)->nullable(); - $table->decimal('phi', 10, 6)->nullable(); - $table->decimal('elevation', 65, 10)->nullable(); - $table->decimal('latitude', 8, 6)->nullable(); - $table->decimal('longitude', 9, 6)->nullable(); - - // Flags - - $table->boolean('active')->default(1)->index(); - $table->boolean('canceled')->default(0); - $table->boolean('closed')->default(0); - $table->boolean('completed')->default(0); - $table->boolean('cron')->default(0)->index(); - $table->boolean('flagged')->default(0); - $table->boolean('internal')->default(0); - $table->boolean('locked')->default(0); - $table->boolean('pending')->default(0); - $table->boolean('planned')->default(0); - $table->boolean('problem')->default(0); - $table->boolean('published')->default(0); - $table->boolean('released')->default(0); - $table->boolean('resolved')->default(0); - $table->boolean('suspended')->default(0); - $table->boolean('unknown')->default(0); - - // Columns - - $table->string('label', 128)->default(''); - $table->string('title', 255)->default(''); - $table->string('byline', 255)->default(''); - $table->string('slug', 128)->nullable()->index(); - $table->string('url', 512)->default(''); - $table->string('description', 512)->default(''); - $table->string('introduction', 512)->default(''); - $table->mediumText('content')->nullable(); - $table->mediumText('summary')->nullable(); - - // Ui - - $table->string('icon', 128)->default(''); - $table->string('image', 512)->default(''); - $table->string('avatar', 512)->default(''); - $table->json('ui')->nullable()->default(new Expression('(JSON_OBJECT())')); - - // JSON - - $table->json('assets')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('backlog')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('board')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('flow')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('meta')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('notes')->nullable()->default(new Expression('(JSON_ARRAY())'))->comment('Array of note objects'); - $table->json('options')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('roadmap')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('sources')->nullable()->default(new Expression('(JSON_OBJECT())')); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('matrix_roadmaps'); - } -}; diff --git a/database/migrations-package/2020_01_02_100001_create_matrix_sources_table.php b/database/migrations-package/2020_01_02_100001_create_matrix_sources_table.php deleted file mode 100644 index f9a54ce..0000000 --- a/database/migrations-package/2020_01_02_100001_create_matrix_sources_table.php +++ /dev/null @@ -1,150 +0,0 @@ -uuid('id')->primary(); - - // IDs - - $table->uuid('created_by_id')->nullable()->index(); - $table->uuid('modified_by_id')->nullable()->index(); - $table->uuid('owned_by_id')->nullable()->index(); - $table->uuid('parent_id')->nullable()->index(); - $table->string('source_type')->nullable()->index(); - $table->uuid('matrix_id')->nullable()->index(); - $table->uuid('tag_id')->nullable()->index(); - $table->uuid('team_id')->nullable()->index(); - - // Dates - - $table->timestamps(); - - $table->softDeletes(); - - $table->dateTime('start_at')->nullable()->index(); - $table->dateTime('planned_start_at')->nullable(); - $table->dateTime('end_at')->nullable()->index(); - $table->dateTime('planned_end_at')->nullable(); - $table->dateTime('canceled_at')->nullable(); - $table->dateTime('closed_at')->nullable()->index(); - $table->dateTime('embargo_at')->nullable(); - $table->dateTime('fixed_at')->nullable(); - $table->dateTime('postponed_at')->nullable(); - $table->dateTime('published_at')->nullable(); - $table->dateTime('released_at')->nullable(); - $table->dateTime('resumed_at')->nullable(); - $table->dateTime('resolved_at')->nullable()->index(); - $table->dateTime('suspended_at')->nullable(); - - // Permissions - - $table->bigInteger('gids')->default(0)->unsigned(); - $table->tinyInteger('po')->default(0)->unsigned(); - $table->tinyInteger('pg')->default(0)->unsigned(); - $table->tinyInteger('pw')->default(0)->unsigned(); - $table->boolean('only_admin')->default(0); - $table->boolean('only_user')->default(0); - $table->boolean('only_guest')->default(0); - $table->boolean('allow_public')->default(0); - - // Status - - $table->bigInteger('status')->default(0)->unsigned(); - $table->bigInteger('rank')->default(0); - $table->bigInteger('size')->default(0); - - // Matrix - - $table->json('matrix')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->bigInteger('x')->nullable(); - $table->bigInteger('y')->nullable(); - $table->bigInteger('z')->nullable(); - $table->decimal('r', 65, 10)->nullable(); - $table->decimal('theta', 10, 6)->nullable(); - $table->decimal('rho', 10, 6)->nullable(); - $table->decimal('phi', 10, 6)->nullable(); - $table->decimal('elevation', 65, 10)->nullable(); - $table->decimal('latitude', 8, 6)->nullable(); - $table->decimal('longitude', 9, 6)->nullable(); - - // Flags - - $table->boolean('active')->default(1)->index(); - $table->boolean('canceled')->default(0); - $table->boolean('closed')->default(0); - $table->boolean('completed')->default(0); - $table->boolean('cron')->default(0)->index(); - $table->boolean('duplicate')->default(0); - $table->boolean('fixed')->default(0); - $table->boolean('flagged')->default(0); - $table->boolean('internal')->default(0); - $table->boolean('locked')->default(0); - $table->boolean('pending')->default(0); - $table->boolean('planned')->default(0); - $table->boolean('problem')->default(0); - $table->boolean('published')->default(0); - $table->boolean('released')->default(0); - $table->boolean('retired')->default(0); - $table->boolean('resolved')->default(0); - $table->boolean('suspended')->default(0); - $table->boolean('unknown')->default(0); - - // Columns - - $table->string('label', 128)->default(''); - $table->string('title', 255)->default(''); - $table->string('byline', 255)->default(''); - $table->string('slug', 128)->nullable()->index(); - $table->string('url', 512)->default(''); - $table->string('description', 512)->default(''); - $table->string('introduction', 512)->default(''); - $table->mediumText('content')->nullable(); - $table->mediumText('summary')->nullable(); - - // Ui - - $table->string('icon', 128)->default(''); - $table->string('image', 512)->default(''); - $table->string('avatar', 512)->default(''); - $table->json('ui')->nullable()->default(new Expression('(JSON_OBJECT())')); - - // JSON - - $table->json('assets')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('meta')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('notes')->nullable()->default(new Expression('(JSON_ARRAY())'))->comment('Array of note objects'); - $table->json('options')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('sources')->nullable()->default(new Expression('(JSON_OBJECT())')); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('matrix_sources'); - } -}; diff --git a/database/migrations-package/2020_01_02_100001_create_matrix_sprints_table.php b/database/migrations-package/2020_01_02_100001_create_matrix_sprints_table.php deleted file mode 100644 index 3936cc0..0000000 --- a/database/migrations-package/2020_01_02_100001_create_matrix_sprints_table.php +++ /dev/null @@ -1,166 +0,0 @@ -uuid('id')->primary(); - - // IDs - - $table->uuid('created_by_id')->nullable()->index(); - $table->uuid('modified_by_id')->nullable()->index(); - $table->uuid('owned_by_id')->nullable()->index(); - $table->uuid('parent_id')->nullable()->index(); - $table->string('sprint_type')->nullable()->index(); - $table->uuid('backlog_id')->nullable()->index(); - $table->uuid('board_id')->nullable()->index(); - $table->uuid('epic_id')->nullable()->index(); - $table->uuid('flow_id')->nullable()->index(); - $table->uuid('matrix_id')->nullable()->index(); - $table->uuid('milestone_id')->nullable()->index(); - $table->uuid('note_id')->nullable()->index(); - $table->uuid('project_id')->nullable()->index(); - $table->uuid('release_id')->nullable()->index(); - $table->uuid('roadmap_id')->nullable()->index(); - $table->uuid('source_id')->nullable()->index(); - $table->uuid('tag_id')->nullable()->index(); - $table->uuid('team_id')->nullable()->index(); - $table->uuid('ticket_id')->nullable()->index(); - $table->uuid('version_id')->nullable()->index(); - - // Dates - - $table->timestamps(); - - $table->softDeletes(); - - $table->dateTime('start_at')->nullable()->index(); - $table->dateTime('planned_start_at')->nullable(); - $table->dateTime('end_at')->nullable()->index(); - $table->dateTime('planned_end_at')->nullable(); - $table->dateTime('canceled_at')->nullable(); - $table->dateTime('closed_at')->nullable()->index(); - $table->dateTime('embargo_at')->nullable(); - $table->dateTime('fixed_at')->nullable(); - $table->dateTime('postponed_at')->nullable(); - $table->dateTime('published_at')->nullable(); - $table->dateTime('released_at')->nullable(); - $table->dateTime('resumed_at')->nullable(); - $table->dateTime('resolved_at')->nullable()->index(); - $table->dateTime('suspended_at')->nullable(); - - // Permissions - - $table->bigInteger('gids')->default(0)->unsigned(); - $table->tinyInteger('po')->default(0)->unsigned(); - $table->tinyInteger('pg')->default(0)->unsigned(); - $table->tinyInteger('pw')->default(0)->unsigned(); - $table->boolean('only_admin')->default(0); - $table->boolean('only_user')->default(0); - $table->boolean('only_guest')->default(0); - $table->boolean('allow_public')->default(0); - - // Status - - $table->bigInteger('status')->default(0)->unsigned(); - $table->bigInteger('rank')->default(0); - $table->bigInteger('size')->default(0); - - // Matrix - - $table->json('matrix')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->bigInteger('x')->nullable(); - $table->bigInteger('y')->nullable(); - $table->bigInteger('z')->nullable(); - $table->decimal('r', 65, 10)->nullable(); - $table->decimal('theta', 10, 6)->nullable(); - $table->decimal('rho', 10, 6)->nullable(); - $table->decimal('phi', 10, 6)->nullable(); - $table->decimal('elevation', 65, 10)->nullable(); - $table->decimal('latitude', 8, 6)->nullable(); - $table->decimal('longitude', 9, 6)->nullable(); - - // Flags - - $table->boolean('active')->default(1)->index(); - $table->boolean('canceled')->default(0); - $table->boolean('closed')->default(0); - $table->boolean('completed')->default(0); - $table->boolean('cron')->default(0)->index(); - $table->boolean('duplicate')->default(0); - $table->boolean('fixed')->default(0); - $table->boolean('flagged')->default(0); - $table->boolean('internal')->default(0); - $table->boolean('locked')->default(0); - $table->boolean('pending')->default(0); - $table->boolean('planned')->default(0); - $table->boolean('problem')->default(0); - $table->boolean('published')->default(0); - $table->boolean('released')->default(0); - $table->boolean('retired')->default(0); - $table->boolean('resolved')->default(0); - $table->boolean('suspended')->default(0); - $table->boolean('unknown')->default(0); - - // Columns - - $table->string('label', 128)->default(''); - $table->string('title', 255)->default(''); - $table->string('byline', 255)->default(''); - $table->string('slug', 128)->nullable()->index(); - $table->string('url', 512)->default(''); - $table->string('description', 512)->default(''); - $table->string('introduction', 512)->default(''); - $table->mediumText('content')->nullable(); - $table->mediumText('summary')->nullable(); - - // Ui - - $table->string('icon', 128)->default(''); - $table->string('image', 512)->default(''); - $table->string('avatar', 512)->default(''); - $table->json('ui')->nullable()->default(new Expression('(JSON_OBJECT())')); - - // JSON - - $table->json('assets')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('backlog')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('board')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('flow')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('meta')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('notes')->nullable()->default(new Expression('(JSON_ARRAY())'))->comment('Array of note objects'); - $table->json('options')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('roadmap')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('sources')->nullable()->default(new Expression('(JSON_OBJECT())')); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('matrix_sprints'); - } -}; diff --git a/database/migrations-package/2020_01_02_100001_create_matrix_tags_table.php b/database/migrations-package/2020_01_02_100001_create_matrix_tags_table.php deleted file mode 100644 index b3caa09..0000000 --- a/database/migrations-package/2020_01_02_100001_create_matrix_tags_table.php +++ /dev/null @@ -1,120 +0,0 @@ -uuid('id')->primary(); - - // IDs - - $table->uuid('created_by_id')->nullable()->index(); - $table->uuid('modified_by_id')->nullable()->index(); - $table->uuid('owned_by_id')->nullable()->index(); - $table->uuid('parent_id')->nullable()->index(); - $table->string('tag_type')->nullable()->index(); - $table->uuid('matrix_id')->nullable()->index(); - - // Dates - - $table->timestamps(); - - $table->softDeletes(); - - // Permissions - - $table->bigInteger('gids')->default(0)->unsigned(); - $table->tinyInteger('po')->default(0)->unsigned(); - $table->tinyInteger('pg')->default(0)->unsigned(); - $table->tinyInteger('pw')->default(0)->unsigned(); - $table->boolean('only_admin')->default(0); - $table->boolean('only_user')->default(0); - $table->boolean('only_guest')->default(0); - $table->boolean('allow_public')->default(0); - - // Status - - $table->bigInteger('status')->default(0)->unsigned(); - $table->bigInteger('rank')->default(0); - $table->bigInteger('size')->default(0); - - // Matrix - - $table->json('matrix')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->bigInteger('x')->nullable(); - $table->bigInteger('y')->nullable(); - $table->bigInteger('z')->nullable(); - $table->decimal('r', 65, 10)->nullable(); - $table->decimal('theta', 10, 6)->nullable(); - $table->decimal('rho', 10, 6)->nullable(); - $table->decimal('phi', 10, 6)->nullable(); - $table->decimal('elevation', 65, 10)->nullable(); - $table->decimal('latitude', 8, 6)->nullable(); - $table->decimal('longitude', 9, 6)->nullable(); - - // Flags - - $table->boolean('active')->default(1)->index(); - $table->boolean('flagged')->default(0); - $table->boolean('internal')->default(0); - $table->boolean('locked')->default(0); - $table->boolean('retired')->default(0); - $table->boolean('unknown')->default(0); - - // Columns - - $table->string('label', 128)->default(''); - $table->string('title', 255)->default(''); - $table->string('byline', 255)->default(''); - $table->string('slug', 128)->nullable()->index(); - $table->string('url', 512)->default(''); - $table->string('description', 512)->default(''); - $table->string('introduction', 512)->default(''); - $table->mediumText('content')->nullable(); - $table->mediumText('summary')->nullable(); - - // Ui - - $table->string('icon', 128)->default(''); - $table->string('image', 512)->default(''); - $table->string('avatar', 512)->default(''); - $table->json('ui')->nullable()->default(new Expression('(JSON_OBJECT())')); - - // JSON - - $table->json('assets')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('meta')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('notes')->nullable()->default(new Expression('(JSON_ARRAY())'))->comment('Array of note objects'); - $table->json('options')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('sources')->nullable()->default(new Expression('(JSON_OBJECT())')); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('matrix_tags'); - } -}; diff --git a/database/migrations-package/2020_01_02_100001_create_matrix_teams_table.php b/database/migrations-package/2020_01_02_100001_create_matrix_teams_table.php deleted file mode 100644 index 7fe3c62..0000000 --- a/database/migrations-package/2020_01_02_100001_create_matrix_teams_table.php +++ /dev/null @@ -1,157 +0,0 @@ -uuid('id')->primary(); - - // IDs - - $table->uuid('created_by_id')->nullable()->index(); - $table->uuid('modified_by_id')->nullable()->index(); - $table->uuid('owned_by_id')->nullable()->index(); - $table->uuid('parent_id')->nullable()->index(); - $table->string('team_type')->nullable()->index(); - $table->uuid('backlog_id')->nullable()->index(); - $table->uuid('board_id')->nullable()->index(); - $table->uuid('epic_id')->nullable()->index(); - $table->uuid('flow_id')->nullable()->index(); - $table->uuid('matrix_id')->nullable()->index(); - $table->uuid('milestone_id')->nullable()->index(); - $table->uuid('note_id')->nullable()->index(); - $table->uuid('project_id')->nullable()->index(); - $table->uuid('release_id')->nullable()->index(); - $table->uuid('roadmap_id')->nullable()->index(); - $table->uuid('source_id')->nullable()->index(); - $table->uuid('sprint_id')->nullable()->index(); - $table->uuid('tag_id')->nullable()->index(); - $table->uuid('ticket_id')->nullable()->index(); - $table->uuid('version_id')->nullable()->index(); - - // Dates - - $table->timestamps(); - - $table->softDeletes(); - - $table->dateTime('start_at')->nullable()->index(); - $table->dateTime('planned_start_at')->nullable(); - $table->dateTime('end_at')->nullable()->index(); - $table->dateTime('planned_end_at')->nullable(); - $table->dateTime('canceled_at')->nullable(); - $table->dateTime('closed_at')->nullable()->index(); - $table->dateTime('embargo_at')->nullable(); - $table->dateTime('postponed_at')->nullable(); - $table->dateTime('resumed_at')->nullable(); - $table->dateTime('suspended_at')->nullable(); - - // Permissions - - $table->bigInteger('gids')->default(0)->unsigned(); - $table->tinyInteger('po')->default(0)->unsigned(); - $table->tinyInteger('pg')->default(0)->unsigned(); - $table->tinyInteger('pw')->default(0)->unsigned(); - $table->boolean('only_admin')->default(0); - $table->boolean('only_user')->default(0); - $table->boolean('only_guest')->default(0); - $table->boolean('allow_public')->default(0); - - // Status - - $table->bigInteger('status')->default(0)->unsigned(); - $table->bigInteger('rank')->default(0); - $table->bigInteger('size')->default(0); - - // Matrix - - $table->json('matrix')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->bigInteger('x')->nullable(); - $table->bigInteger('y')->nullable(); - $table->bigInteger('z')->nullable(); - $table->decimal('r', 65, 10)->nullable(); - $table->decimal('theta', 10, 6)->nullable(); - $table->decimal('rho', 10, 6)->nullable(); - $table->decimal('phi', 10, 6)->nullable(); - $table->decimal('elevation', 65, 10)->nullable(); - $table->decimal('latitude', 8, 6)->nullable(); - $table->decimal('longitude', 9, 6)->nullable(); - - // Flags - - $table->boolean('active')->default(1)->index(); - $table->boolean('canceled')->default(0); - $table->boolean('closed')->default(0); - $table->boolean('completed')->default(0); - $table->boolean('cron')->default(0)->index(); - $table->boolean('flagged')->default(0); - $table->boolean('internal')->default(0); - $table->boolean('locked')->default(0); - $table->boolean('pending')->default(0); - $table->boolean('planned')->default(0); - $table->boolean('problem')->default(0); - $table->boolean('retired')->default(0); - $table->boolean('suspended')->default(0); - $table->boolean('unknown')->default(0); - - // Columns - - $table->string('label', 128)->default(''); - $table->string('title', 255)->default(''); - $table->string('byline', 255)->default(''); - $table->string('slug', 128)->nullable()->index(); - $table->string('url', 512)->default(''); - $table->string('description', 512)->default(''); - $table->string('introduction', 512)->default(''); - $table->mediumText('content')->nullable(); - $table->mediumText('summary')->nullable(); - - // Ui - - $table->string('icon', 128)->default(''); - $table->string('image', 512)->default(''); - $table->string('avatar', 512)->default(''); - $table->json('ui')->nullable()->default(new Expression('(JSON_OBJECT())')); - - // JSON - - $table->json('assets')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('backlog')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('board')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('flow')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('meta')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('notes')->nullable()->default(new Expression('(JSON_ARRAY())'))->comment('Array of note objects'); - $table->json('options')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('roadmap')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('sources')->nullable()->default(new Expression('(JSON_OBJECT())')); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('matrix_teams'); - } -}; diff --git a/database/migrations-package/2020_01_02_100001_create_matrix_tickets_table.php b/database/migrations-package/2020_01_02_100001_create_matrix_tickets_table.php deleted file mode 100644 index 5352dfd..0000000 --- a/database/migrations-package/2020_01_02_100001_create_matrix_tickets_table.php +++ /dev/null @@ -1,191 +0,0 @@ -uuid('id')->primary(); - - // IDs - - $table->uuid('created_by_id')->nullable()->index(); - $table->uuid('modified_by_id')->nullable()->index(); - $table->uuid('owned_by_id')->nullable()->index(); - $table->uuid('parent_id')->nullable()->index(); - $table->string('ticket_type')->nullable()->index(); - $table->uuid('duplicate_id')->nullable()->index(); - $table->uuid('backlog_id')->nullable()->index(); - $table->uuid('board_id')->nullable()->index(); - $table->uuid('completed_by_id')->nullable()->index(); - $table->uuid('epic_id')->nullable()->index(); - $table->uuid('fixed_by_id')->nullable()->index(); - $table->uuid('flow_id')->nullable()->index(); - $table->uuid('matrix_id')->nullable()->index(); - $table->uuid('milestone_id')->nullable()->index(); - $table->uuid('note_id')->nullable()->index(); - $table->uuid('project_id')->nullable()->index(); - $table->uuid('release_id')->nullable()->index(); - $table->uuid('reported_by_id')->nullable()->index(); - $table->uuid('roadmap_id')->nullable()->index(); - $table->uuid('source_id')->nullable()->index(); - $table->uuid('sprint_id')->nullable()->index(); - $table->uuid('tag_id')->nullable()->index(); - $table->uuid('team_id')->nullable()->index(); - $table->uuid('version_id')->nullable()->index(); - $table->uuid('version_fixed_id')->nullable()->index(); - - // Dates - - $table->timestamps(); - - $table->softDeletes(); - - $table->dateTime('start_at')->nullable()->index(); - $table->dateTime('planned_start_at')->nullable(); - $table->dateTime('end_at')->nullable()->index(); - $table->dateTime('planned_end_at')->nullable(); - $table->dateTime('canceled_at')->nullable(); - $table->dateTime('closed_at')->nullable()->index(); - $table->dateTime('embargo_at')->nullable(); - $table->dateTime('fixed_at')->nullable(); - $table->dateTime('postponed_at')->nullable(); - $table->dateTime('published_at')->nullable(); - $table->dateTime('released_at')->nullable(); - $table->dateTime('resumed_at')->nullable(); - $table->dateTime('resolved_at')->nullable()->index(); - $table->dateTime('suspended_at')->nullable(); - - // Permissions - - $table->bigInteger('gids')->default(0)->unsigned(); - $table->tinyInteger('po')->default(0)->unsigned(); - $table->tinyInteger('pg')->default(0)->unsigned(); - $table->tinyInteger('pw')->default(0)->unsigned(); - $table->boolean('only_admin')->default(0); - $table->boolean('only_user')->default(0); - $table->boolean('only_guest')->default(0); - $table->boolean('allow_public')->default(0); - - // Status - - $table->bigInteger('status')->default(0)->unsigned(); - $table->bigInteger('rank')->default(0); - $table->bigInteger('size')->default(0); - - // Matrix - - $table->json('matrix')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->bigInteger('x')->nullable(); - $table->bigInteger('y')->nullable(); - $table->bigInteger('z')->nullable(); - $table->decimal('r', 65, 10)->nullable(); - $table->decimal('theta', 10, 6)->nullable(); - $table->decimal('rho', 10, 6)->nullable(); - $table->decimal('phi', 10, 6)->nullable(); - $table->decimal('elevation', 65, 10)->nullable(); - $table->decimal('latitude', 8, 6)->nullable(); - $table->decimal('longitude', 9, 6)->nullable(); - - // Flags - - $table->boolean('active')->default(1)->index(); - $table->boolean('canceled')->default(0); - $table->boolean('closed')->default(0); - $table->boolean('completed')->default(0); - $table->boolean('cron')->default(0)->index(); - $table->boolean('duplicate')->default(0); - $table->boolean('fixed')->default(0); - $table->boolean('flagged')->default(0); - $table->boolean('internal')->default(0); - $table->boolean('locked')->default(0); - $table->boolean('pending')->default(0); - $table->boolean('planned')->default(0); - $table->boolean('prioritized')->default(0); - $table->boolean('problem')->default(0); - $table->boolean('published')->default(0); - $table->boolean('released')->default(0); - $table->boolean('retired')->default(0); - $table->boolean('resolved')->default(0); - $table->boolean('special')->default(0); - $table->boolean('suspended')->default(0); - $table->boolean('unknown')->default(0); - - // Columns - - $table->string('label', 128)->default(''); - $table->string('title', 255)->default(''); - $table->string('byline', 255)->default(''); - $table->string('slug', 128)->nullable()->index(); - $table->string('url', 512)->default(''); - $table->string('description', 512)->default(''); - $table->string('introduction', 512)->default(''); - $table->mediumText('content')->nullable(); - $table->mediumText('summary')->nullable(); - $table->string('handler')->default(''); - $table->string('key', 32)->nullable()->index(); - $table->bigInteger('code')->nullable()->unsigned()->index(); - $table->string('key_code_hash')->nullable(); - $table->string('priority')->default(''); - $table->string('severity')->default(''); - $table->string('resolution')->default(''); - $table->string('step')->default(''); - $table->string('state')->default(''); - $table->string('workflow_type')->default(''); - $table->tinyInteger('points')->default(0)->unsigned(); - $table->mediumText('actual')->nullable(); - $table->mediumText('expected')->nullable(); - $table->mediumText('story')->nullable(); - $table->mediumText('steps')->nullable(); - $table->mediumText('criteria')->nullable(); - $table->decimal('reproducibility', 8, 2)->nullable(); - - // Ui - - $table->string('icon', 128)->default(''); - $table->string('image', 512)->default(''); - $table->string('avatar', 512)->default(''); - $table->json('ui')->nullable()->default(new Expression('(JSON_OBJECT())')); - - // JSON - - $table->json('assets')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('backlog')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('board')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('flow')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('history')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('meta')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('notes')->nullable()->default(new Expression('(JSON_ARRAY())'))->comment('Array of note objects'); - $table->json('options')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('roadmap')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('sources')->nullable()->default(new Expression('(JSON_OBJECT())')); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('matrix_tickets'); - } -}; diff --git a/database/migrations-package/2020_01_02_100001_create_matrix_versions_table.php b/database/migrations-package/2020_01_02_100001_create_matrix_versions_table.php deleted file mode 100644 index a4637b7..0000000 --- a/database/migrations-package/2020_01_02_100001_create_matrix_versions_table.php +++ /dev/null @@ -1,152 +0,0 @@ -uuid('id')->primary(); - - // IDs - - $table->uuid('created_by_id')->nullable()->index(); - $table->uuid('modified_by_id')->nullable()->index(); - $table->uuid('owned_by_id')->nullable()->index(); - $table->uuid('parent_id')->nullable()->index(); - $table->string('version_type')->nullable()->index(); - $table->uuid('matrix_id')->nullable()->index(); - $table->uuid('project_id')->nullable()->index(); - $table->uuid('roadmap_id')->nullable()->index(); - $table->uuid('source_id')->nullable()->index(); - $table->uuid('tag_id')->nullable()->index(); - $table->uuid('team_id')->nullable()->index(); - $table->uuid('ticket_id')->nullable()->index(); - - // Dates - - $table->timestamps(); - - $table->softDeletes(); - - $table->dateTime('start_at')->nullable()->index(); - $table->dateTime('planned_start_at')->nullable(); - $table->dateTime('end_at')->nullable()->index(); - $table->dateTime('planned_end_at')->nullable(); - $table->dateTime('canceled_at')->nullable(); - $table->dateTime('closed_at')->nullable()->index(); - $table->dateTime('embargo_at')->nullable(); - $table->dateTime('fixed_at')->nullable(); - $table->dateTime('postponed_at')->nullable(); - $table->dateTime('published_at')->nullable(); - $table->dateTime('released_at')->nullable(); - $table->dateTime('resumed_at')->nullable(); - $table->dateTime('resolved_at')->nullable()->index(); - $table->dateTime('suspended_at')->nullable(); - - // Permissions - - $table->bigInteger('gids')->default(0)->unsigned(); - $table->tinyInteger('po')->default(0)->unsigned(); - $table->tinyInteger('pg')->default(0)->unsigned(); - $table->tinyInteger('pw')->default(0)->unsigned(); - $table->boolean('only_admin')->default(0); - $table->boolean('only_user')->default(0); - $table->boolean('only_guest')->default(0); - $table->boolean('allow_public')->default(0); - - // Status - - $table->bigInteger('status')->default(0)->unsigned(); - $table->bigInteger('rank')->default(0); - $table->bigInteger('size')->default(0); - - // Matrix - - $table->json('matrix')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->bigInteger('x')->nullable(); - $table->bigInteger('y')->nullable(); - $table->bigInteger('z')->nullable(); - $table->decimal('r', 65, 10)->nullable(); - $table->decimal('theta', 10, 6)->nullable(); - $table->decimal('rho', 10, 6)->nullable(); - $table->decimal('phi', 10, 6)->nullable(); - $table->decimal('elevation', 65, 10)->nullable(); - $table->decimal('latitude', 8, 6)->nullable(); - $table->decimal('longitude', 9, 6)->nullable(); - - // Flags - - $table->boolean('active')->default(1)->index(); - $table->boolean('canceled')->default(0); - $table->boolean('closed')->default(0); - $table->boolean('completed')->default(0); - $table->boolean('fixed')->default(0); - $table->boolean('flagged')->default(0); - $table->boolean('internal')->default(0); - $table->boolean('locked')->default(0); - $table->boolean('pending')->default(0); - $table->boolean('planned')->default(0); - $table->boolean('problem')->default(0); - $table->boolean('published')->default(0); - $table->boolean('released')->default(0); - $table->boolean('retired')->default(0); - $table->boolean('resolved')->default(0); - $table->boolean('suspended')->default(0); - $table->boolean('unknown')->default(0); - - // Columns - - $table->string('label', 128)->default(''); - $table->string('title', 255)->default(''); - $table->string('byline', 255)->default(''); - $table->string('slug', 128)->nullable()->index(); - $table->string('url', 512)->default(''); - $table->string('description', 512)->default(''); - $table->string('introduction', 512)->default(''); - $table->mediumText('content')->nullable(); - $table->mediumText('summary')->nullable(); - - // Ui - - $table->string('icon', 128)->default(''); - $table->string('image', 512)->default(''); - $table->string('avatar', 512)->default(''); - $table->json('ui')->nullable()->default(new Expression('(JSON_OBJECT())')); - - // JSON - - $table->json('assets')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('meta')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('notes')->nullable()->default(new Expression('(JSON_ARRAY())'))->comment('Array of note objects'); - $table->json('options')->nullable()->default(new Expression('(JSON_OBJECT())')); - $table->json('sources')->nullable()->default(new Expression('(JSON_OBJECT())')); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('matrix_versions'); - } -}; diff --git a/database/migrations-playground/0001_01_01_000000_create_users_table.php b/database/migrations-playground/0001_01_01_000000_create_users_table.php deleted file mode 100644 index d3ca506..0000000 --- a/database/migrations-playground/0001_01_01_000000_create_users_table.php +++ /dev/null @@ -1,175 +0,0 @@ -uuid('id')->primary(); - - // IDs - - $table->uuid('created_by_id')->nullable()->index(); - $table->uuid('modified_by_id')->nullable()->index(); - $table->string('user_type')->nullable()->index(); - - // Date columns - - $table->timestamps(); - - $table->timestamp('email_verified_at')->nullable(); - // $table->dateTime('email_verified_at')->nullable(); - - $table->dateTime('banned_at')->nullable(); - $table->dateTime('suspended_at')->nullable(); - - $table->softDeletes(); - - // Permissions - - $table->bigInteger('gids')->default(0)->unsigned(); - $table->bigInteger('po')->default(0)->unsigned(); - $table->bigInteger('pg')->default(0)->unsigned(); - $table->bigInteger('pw')->default(0)->unsigned(); - - $table->rememberToken(); - - $table->string('role')->default(''); - - // Status - - $table->bigInteger('status')->default(0)->unsigned(); - $table->bigInteger('rank')->default(0); - $table->bigInteger('size')->default(0); - - // Matrix - - $table->string('matrix')->default(''); - $table->bigInteger('x')->nullable(); - $table->bigInteger('y')->nullable(); - $table->bigInteger('z')->nullable(); - $table->decimal('r', 65, 10)->nullable()->default(null); - $table->decimal('theta', 10, 6)->nullable()->default(null); - $table->decimal('rho', 10, 6)->nullable()->default(null); - $table->decimal('phi', 10, 6)->nullable()->default(null); - $table->decimal('elevation', 65, 10)->nullable()->default(null); - $table->decimal('latitude', 8, 6)->nullable()->default(null); - $table->decimal('longitude', 9, 6)->nullable()->default(null); - - // Flags - - $table->boolean('active')->default(1)->index(); - $table->boolean('banned')->default(0)->index(); - $table->boolean('flagged')->default(0)->index(); - $table->boolean('internal')->default(0)->index(); - $table->boolean('locked')->default(0)->index(); - $table->boolean('problem')->default(0)->index(); - $table->boolean('suspended')->default(0)->index(); - $table->boolean('unknown')->default(0)->index(); - - // Strings - - $table->string('name')->default(''); - $table->string('email')->unique(); - $table->string('password')->default(''); - $table->string('phone')->nullable(); - $table->string('locale')->default(''); - $table->string('timezone')->default(''); - - $table->string('label')->default(''); - $table->string('title')->default(''); - $table->string('byline')->default(''); - $table->string('slug')->nullable()->default(null)->index(); - - // A link to the external source of the user. - $table->string('url')->default(''); - - $table->string('description')->default(''); - - // The introduction should be the first 255 characters or less of the content. - // The introduction is visible to the client. No HTML. - $table->string('introduction')->default(''); - - // The HTML content of the user. - $table->mediumText('content')->nullable(); - - // The summary of the content, HTML allowed, to be shown to the client. - $table->mediumText('summary')->nullable(); - - // UI - - $table->string('icon')->default(''); - $table->string('image')->default(''); - $table->string('avatar')->default(''); - $table->json('ui')->nullable()->default(new Expression('(JSON_OBJECT())')); - - $table->json('abilities') - ->default(new Expression('(JSON_ARRAY())')) - ->comment('Array of ability strings'); - $table->longText('accounts') - ->comment('Encrypted user account objects'); - $table->longText('address') - ->comment('Encrypted user address object'); - $table->longText('contact') - ->comment('Encrypted contact object'); - $table->longText('meta') - ->comment('Encrypted meta object'); - $table->longText('notes') - ->comment('Encrypted array of note objects'); - $table->longText('options') - ->comment('Encrypted options object'); - $table->longText('registration') - ->comment('Encrypted registration information object'); - $table->json('roles') - ->default(new Expression('(JSON_ARRAY())')) - ->comment('Array of role strings'); - $table->json('permissions') - ->default(new Expression('(JSON_ARRAY())')) - ->comment('Array of permission strings'); - $table->json('privileges') - ->default(new Expression('(JSON_ARRAY())')) - ->comment('Array of privilege strings'); - $table->longText('sources') - ->comment('Encrypted array of sources'); - - }); - - Schema::create('password_reset_tokens', function (Blueprint $table) { - $table->string('email')->primary(); - $table->string('token'); - $table->timestamp('created_at')->nullable(); - }); - - Schema::create('sessions', function (Blueprint $table) { - $table->string('id')->primary(); - $table->foreignId('user_id')->nullable()->index(); - $table->string('ip_address', 45)->nullable(); - $table->text('user_agent')->nullable(); - $table->longText('payload'); - $table->integer('last_activity')->index(); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('users'); - Schema::dropIfExists('password_reset_tokens'); - Schema::dropIfExists('sessions'); - } -}; diff --git a/database/migrations-playground/0001_01_01_000001_create_cache_table.php b/database/migrations-playground/0001_01_01_000001_create_cache_table.php deleted file mode 100644 index 960e12b..0000000 --- a/database/migrations-playground/0001_01_01_000001_create_cache_table.php +++ /dev/null @@ -1,37 +0,0 @@ -string('key')->primary(); - $table->mediumText('value'); - $table->integer('expiration'); - }); - - Schema::create('cache_locks', function (Blueprint $table) { - $table->string('key')->primary(); - $table->string('owner'); - $table->integer('expiration'); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('cache'); - Schema::dropIfExists('cache_locks'); - } -}; diff --git a/database/migrations-playground/0001_01_01_000002_create_jobs_table.php b/database/migrations-playground/0001_01_01_000002_create_jobs_table.php deleted file mode 100644 index 0dcb8c4..0000000 --- a/database/migrations-playground/0001_01_01_000002_create_jobs_table.php +++ /dev/null @@ -1,59 +0,0 @@ -id(); - $table->string('queue')->index(); - $table->longText('payload'); - $table->unsignedTinyInteger('attempts'); - $table->unsignedInteger('reserved_at')->nullable(); - $table->unsignedInteger('available_at'); - $table->unsignedInteger('created_at'); - }); - - Schema::create('job_batches', function (Blueprint $table) { - $table->string('id')->primary(); - $table->string('name'); - $table->integer('total_jobs'); - $table->integer('pending_jobs'); - $table->integer('failed_jobs'); - $table->longText('failed_job_ids'); - $table->mediumText('options')->nullable(); - $table->integer('cancelled_at')->nullable(); - $table->integer('created_at'); - $table->integer('finished_at')->nullable(); - }); - - Schema::create('failed_jobs', function (Blueprint $table) { - $table->id(); - $table->string('uuid')->unique(); - $table->text('connection'); - $table->text('queue'); - $table->longText('payload'); - $table->longText('exception'); - $table->timestamp('failed_at')->useCurrent(); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('jobs'); - Schema::dropIfExists('job_batches'); - Schema::dropIfExists('failed_jobs'); - } -}; diff --git a/database/migrations-playground/2024_03_13_210031_create_personal_access_tokens_table.php b/database/migrations-playground/2024_03_13_210031_create_personal_access_tokens_table.php deleted file mode 100644 index ccdd208..0000000 --- a/database/migrations-playground/2024_03_13_210031_create_personal_access_tokens_table.php +++ /dev/null @@ -1,35 +0,0 @@ -id(); - $table->uuidMorphs('tokenable'); - $table->string('name'); - $table->string('token', 64)->unique(); - $table->text('abilities')->nullable(); - $table->timestamp('last_used_at')->nullable(); - $table->timestamp('expires_at')->nullable(); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('personal_access_tokens'); - } -}; diff --git a/phpstan.neon.dist b/phpstan.neon.dist index b249ebb..ff74843 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -8,7 +8,7 @@ parameters: paths: - config - - database + - routes - src - tests diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index d0762ad..963cbd7 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -193,8 +193,6 @@ public function about(): void $sitemap = ! empty($config['sitemap']) && is_array($config['sitemap']) ? $config['sitemap'] : []; - $version = $this->version(); - AboutCommand::add('Playground: Matrix Resource', fn () => [ 'Load Policies' => ! empty($load['policies']) ? 'ENABLED' : 'DISABLED', @@ -231,12 +229,7 @@ public function about(): void 'Route versions' => ! empty($routes['versions']) ? 'ENABLED' : 'DISABLED', 'Package' => $this->package, - 'Version' => $version, + 'Version' => ServiceProvider::VERSION, ]); } - - public function version(): string - { - return static::VERSION; - } } diff --git a/tests/Feature/Http/Controllers/Playground/IndexRouteTest.php b/tests/Feature/Http/Controllers/Playground/IndexRouteTest.php index 5e59cb0..be94d5a 100644 --- a/tests/Feature/Http/Controllers/Playground/IndexRouteTest.php +++ b/tests/Feature/Http/Controllers/Playground/IndexRouteTest.php @@ -6,7 +6,7 @@ */ namespace Tests\Feature\Playground\Matrix\Resource\Http\Controllers\Playground; -use Playground\Test\Models\PlaygroundUser as User; +use Playground\Models\User; use Tests\Feature\Playground\Matrix\Resource\TestCase; /** diff --git a/tests/Feature/Http/Controllers/Playground/TicketRouteTest.php b/tests/Feature/Http/Controllers/Playground/TicketRouteTest.php index 670aa43..1422965 100644 --- a/tests/Feature/Http/Controllers/Playground/TicketRouteTest.php +++ b/tests/Feature/Http/Controllers/Playground/TicketRouteTest.php @@ -8,7 +8,7 @@ use Playground\Matrix\Models\Project; use Playground\Matrix\Models\Ticket; -use Playground\Test\Models\PlaygroundUser as User; +use Playground\Models\User; use Tests\Feature\Playground\Matrix\Resource\Http\Controllers\TicketTestCase; /** diff --git a/tests/Feature/Http/Controllers/TestCase.php b/tests/Feature/Http/Controllers/TestCase.php index 6c58813..0baa45d 100644 --- a/tests/Feature/Http/Controllers/TestCase.php +++ b/tests/Feature/Http/Controllers/TestCase.php @@ -36,6 +36,8 @@ class TestCase extends BaseTestCase use Resource\Playground\UpdateJsonTrait; use Resource\Playground\UpdateTrait; + protected bool $setUpUserForPlayground = true; + /** * @var array */ diff --git a/tests/Feature/TestCase.php b/tests/Feature/TestCase.php index 1d51ac4..f668a02 100644 --- a/tests/Feature/TestCase.php +++ b/tests/Feature/TestCase.php @@ -18,41 +18,22 @@ class TestCase extends OrchestraTestCase use DatabaseTransactions; use PackageProviders; - protected bool $load_migrations_laravel = false; + /** + * @var array>> + */ + protected array $load_migrations = [ + 'gammamatrix' => [ + 'playground-matrix' => [ + // 'migrations', + ], + ], + ]; - protected bool $load_migrations_package = true; + protected bool $hasMigrations = true; + + protected bool $load_migrations_laravel = false; protected bool $load_migrations_playground = true; - /** - * Define database migrations. - * - * @api - * - * @return void - */ - protected function defineDatabaseMigrations() - { - // dump([ - // '__METHOD__' => __METHOD__, - // 'env(TEST_DB_MIGRATIONS)' => env('TEST_DB_MIGRATIONS'), - // '$this->load_migrations_laravel' => $this->load_migrations_laravel, - // '$this->load_migrations_package' => $this->load_migrations_package, - // '$this->load_migrations_laravel' => $this->load_migrations_playground, - // 'database/migrations-laravel' => dirname(dirname(__DIR__)).'/database/migrations-laravel', - // 'database/migrations-package' => dirname(dirname(__DIR__)).'/database/migrations-package', - // 'database/migrations-playground' => dirname(dirname(__DIR__)).'/database/migrations-playground', - // ]); - if (! empty(env('TEST_DB_MIGRATIONS'))) { - if ($this->load_migrations_laravel) { - $this->loadMigrationsFrom(dirname(dirname(__DIR__)).'/database/migrations-laravel'); - } - if ($this->load_migrations_package) { - $this->loadMigrationsFrom(dirname(dirname(__DIR__)).'/database/migrations-package'); - } - if ($this->load_migrations_playground) { - $this->loadMigrationsFrom(dirname(dirname(__DIR__)).'/database/migrations-playground'); - } - } - } + protected bool $setUpUserForPlayground = false; } diff --git a/tests/Unit/ServiceProvider/InstanceTest.php b/tests/Unit/ServiceProvider/InstanceTest.php index 30e60b0..f3f04b2 100644 --- a/tests/Unit/ServiceProvider/InstanceTest.php +++ b/tests/Unit/ServiceProvider/InstanceTest.php @@ -25,7 +25,7 @@ public function test_version_matches(): void $this->assertNotEmpty(ServiceProvider::VERSION); $this->assertIsString(ServiceProvider::VERSION); - $this->assertSame(ServiceProvider::VERSION, $instance->version()); + $this->assertSame(ServiceProvider::VERSION, $instance::VERSION); } public function test_setPolicies_with_empty_array(): void