Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi authored and github-actions[bot] committed Jan 19, 2024
1 parent 1a4b1b4 commit b020aad
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions tests/migrations/001_create_categories_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
public function up()
{
Schema::create(config('zeus-bolt.table-prefix').'categories', function (Blueprint $table) {
Schema::create(config('zeus-bolt.table-prefix') . 'categories', function (Blueprint $table) {
$table->id();
$table->text('name');
$table->integer('ordering')->default(1);
Expand All @@ -33,6 +33,6 @@ public function up()
*/
public function down()
{
Schema::dropIfExists(config('zeus-bolt.table-prefix').'categories');
Schema::dropIfExists(config('zeus-bolt.table-prefix') . 'categories');
}
};
4 changes: 2 additions & 2 deletions tests/migrations/002_create_collections_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
public function up()
{
Schema::create(config('zeus-bolt.table-prefix').'collections', function (Blueprint $table) {
Schema::create(config('zeus-bolt.table-prefix') . 'collections', function (Blueprint $table) {
$table->id();
$table->text('name');
$table->longText('values')->nullable();
Expand All @@ -29,6 +29,6 @@ public function up()
*/
public function down()
{
Schema::dropIfExists(config('zeus-bolt.table-prefix').'collections');
Schema::dropIfExists(config('zeus-bolt.table-prefix') . 'collections');
}
};
6 changes: 3 additions & 3 deletions tests/migrations/003_create_forms_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
*/
public function up()
{
Schema::create(config('zeus-bolt.table-prefix').'forms', function (Blueprint $table) {
Schema::create(config('zeus-bolt.table-prefix') . 'forms', function (Blueprint $table) {
$table->id();
$table->foreignId('user_id')->constrained('users');
$table->foreignId('category_id')->nullable()->constrained(config('zeus-bolt.table-prefix').'categories');
$table->foreignId('category_id')->nullable()->constrained(config('zeus-bolt.table-prefix') . 'categories');
$table->text('name');
$table->text('description')->nullable();
$table->string('slug');
Expand All @@ -39,6 +39,6 @@ public function up()
*/
public function down()
{
Schema::dropIfExists(config('zeus-bolt.table-prefix').'forms');
Schema::dropIfExists(config('zeus-bolt.table-prefix') . 'forms');
}
};
6 changes: 3 additions & 3 deletions tests/migrations/004_create_sections_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
*/
public function up()
{
Schema::create(config('zeus-bolt.table-prefix').'sections', function (Blueprint $table) {
Schema::create(config('zeus-bolt.table-prefix') . 'sections', function (Blueprint $table) {
$table->id();
$table->foreignId('form_id')->constrained(config('zeus-bolt.table-prefix').'forms');
$table->foreignId('form_id')->constrained(config('zeus-bolt.table-prefix') . 'forms');
$table->text('name')->nullable();
$table->integer('ordering')->default(1);
$table->integer('columns')->default(1);
Expand All @@ -36,6 +36,6 @@ public function up()
*/
public function down()
{
Schema::dropIfExists(config('zeus-bolt.table-prefix').'sections');
Schema::dropIfExists(config('zeus-bolt.table-prefix') . 'sections');
}
};
6 changes: 3 additions & 3 deletions tests/migrations/005_create_fields_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
*/
public function up()
{
Schema::create(config('zeus-bolt.table-prefix').'fields', function (Blueprint $table) {
Schema::create(config('zeus-bolt.table-prefix') . 'fields', function (Blueprint $table) {
$table->id();
$table->foreignId('section_id')->constrained(config('zeus-bolt.table-prefix').'sections');
$table->foreignId('section_id')->constrained(config('zeus-bolt.table-prefix') . 'sections');
$table->text('name');
$table->text('description')->nullable();
$table->string('type');
Expand All @@ -33,6 +33,6 @@ public function up()
*/
public function down()
{
Schema::dropIfExists(config('zeus-bolt.table-prefix').'fields');
Schema::dropIfExists(config('zeus-bolt.table-prefix') . 'fields');
}
};
6 changes: 3 additions & 3 deletions tests/migrations/006_create_responses_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
*/
public function up()
{
Schema::create(config('zeus-bolt.table-prefix').'responses', function (Blueprint $table) {
Schema::create(config('zeus-bolt.table-prefix') . 'responses', function (Blueprint $table) {
$table->id();
$table->foreignId('form_id')->constrained(config('zeus-bolt.table-prefix').'forms');
$table->foreignId('form_id')->constrained(config('zeus-bolt.table-prefix') . 'forms');
$table->foreignId('user_id')->nullable()->constrained('users');
$table->string('status')->default('NEW');
$table->text('notes')->nullable();
Expand All @@ -32,6 +32,6 @@ public function up()
*/
public function down()
{
Schema::dropIfExists(config('zeus-bolt.table-prefix').'responses');
Schema::dropIfExists(config('zeus-bolt.table-prefix') . 'responses');
}
};
10 changes: 5 additions & 5 deletions tests/migrations/007_create_field_responses_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
*/
public function up()
{
Schema::create(config('zeus-bolt.table-prefix').'field_responses', function (Blueprint $table) {
Schema::create(config('zeus-bolt.table-prefix') . 'field_responses', function (Blueprint $table) {
$table->id();
$table->foreignId('form_id')->constrained(config('zeus-bolt.table-prefix').'forms');
$table->foreignId('field_id')->constrained(config('zeus-bolt.table-prefix').'fields');
$table->foreignId('response_id')->constrained(config('zeus-bolt.table-prefix').'responses');
$table->foreignId('form_id')->constrained(config('zeus-bolt.table-prefix') . 'forms');
$table->foreignId('field_id')->constrained(config('zeus-bolt.table-prefix') . 'fields');
$table->foreignId('response_id')->constrained(config('zeus-bolt.table-prefix') . 'responses');
$table->longText('response');
$table->timestamps();
$table->softDeletes();
Expand All @@ -31,6 +31,6 @@ public function up()
*/
public function down()
{
Schema::dropIfExists(config('zeus-bolt.table-prefix').'field_responses');
Schema::dropIfExists(config('zeus-bolt.table-prefix') . 'field_responses');
}
};

0 comments on commit b020aad

Please sign in to comment.