Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gammamatrix committed Apr 27, 2024
1 parent a2f887b commit 5808531
Show file tree
Hide file tree
Showing 20 changed files with 420 additions and 205 deletions.
4 changes: 2 additions & 2 deletions database/factories/ReleaseFactory.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

declare(strict_types=1);
/**
* Playground
*/

declare(strict_types=1);
namespace Database\Factories\Playground\Matrix\Models;

use Illuminate\Database\Eloquent\Factories\Factory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,21 +127,21 @@ public function up(): void

// Columns

$table->string('label')->default('');
$table->string('title')->default('');
$table->string('byline')->default('');
$table->string('slug')->nullable()->index();
$table->string('url')->default('');
$table->string('description')->default('');
$table->string('introduction')->default('');
$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')->default('');
$table->string('image')->default('');
$table->string('avatar')->default('');
$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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,21 +125,21 @@ public function up(): void

// Columns

$table->string('label')->default('');
$table->string('title')->default('');
$table->string('byline')->default('');
$table->string('slug')->nullable()->index();
$table->string('url')->default('');
$table->string('description')->default('');
$table->string('introduction')->default('');
$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')->default('');
$table->string('image')->default('');
$table->string('avatar')->default('');
$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
Expand Down
20 changes: 10 additions & 10 deletions database/migrations/2020_01_02_100001_create_matrix_epics_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,21 +125,21 @@ public function up(): void

// Columns

$table->string('label')->default('');
$table->string('title')->default('');
$table->string('byline')->default('');
$table->string('slug')->nullable()->index();
$table->string('url')->default('');
$table->string('description')->default('');
$table->string('introduction')->default('');
$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')->default('');
$table->string('image')->default('');
$table->string('avatar')->default('');
$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
Expand Down
20 changes: 10 additions & 10 deletions database/migrations/2020_01_02_100001_create_matrix_flows_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,21 +100,21 @@ public function up(): void

// Columns

$table->string('label')->default('');
$table->string('title')->default('');
$table->string('byline')->default('');
$table->string('slug')->nullable()->index();
$table->string('url')->default('');
$table->string('description')->default('');
$table->string('introduction')->default('');
$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')->default('');
$table->string('image')->default('');
$table->string('avatar')->default('');
$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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,21 +125,21 @@ public function up(): void

// Columns

$table->string('label')->default('');
$table->string('title')->default('');
$table->string('byline')->default('');
$table->string('slug')->nullable()->index();
$table->string('url')->default('');
$table->string('description')->default('');
$table->string('introduction')->default('');
$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')->default('');
$table->string('image')->default('');
$table->string('avatar')->default('');
$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
Expand Down
20 changes: 10 additions & 10 deletions database/migrations/2020_01_02_100001_create_matrix_notes_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,21 +89,21 @@ public function up(): void

// Columns

$table->string('label')->default('');
$table->string('title')->default('');
$table->string('byline')->default('');
$table->string('slug')->nullable()->index();
$table->string('url')->default('');
$table->string('description')->default('');
$table->string('introduction')->default('');
$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')->default('');
$table->string('image')->default('');
$table->string('avatar')->default('');
$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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
<?php

declare(strict_types=1);
/**
* Playground
*/

declare(strict_types=1);

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

/**
* \Playground\Matrix\Models\Project
*/
return new class() extends Migration
{
/**
Expand All @@ -18,6 +21,7 @@
public function up(): void
{
Schema::create('matrix_projects', function (Blueprint $table) {

// Primary key

$table->uuid('id')->primary();
Expand Down Expand Up @@ -58,7 +62,6 @@ public function up(): void
$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();
Expand Down Expand Up @@ -89,20 +92,21 @@ public function up(): void
$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);
$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);
Expand All @@ -118,25 +122,25 @@ public function up(): void
$table->boolean('suspended')->default(0);
$table->boolean('unknown')->default(0);

// Strings
// Columns

$table->string('label')->default('');
$table->string('title')->default('');
$table->string('byline')->default('');
$table->string('slug')->nullable()->default(null)->index();
$table->string('url')->default('');
$table->string('description')->default('');
$table->string('introduction')->default('');
$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', 128)->default('');
$table->string('code_name', 128)->default('');
$table->string('key', 32)->nullable()->index();
$table->string('code_name', 128)->nullable()->index();

// UI
// Ui

$table->string('icon')->default('');
$table->string('image')->default('');
$table->string('avatar')->default('');
$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
Expand All @@ -145,6 +149,7 @@ public function up(): void
$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())'));
Expand Down
Loading

0 comments on commit 5808531

Please sign in to comment.