mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 18:13:11 +00:00
* composer require --dev friendsofphp/php-cs-fixer:^2 * php-cs-fixer: ignore cache and custom local config file * php-cs-fixer: initial config * php-cs-fixer: replace commands in composer * php-cs-fixer: add PSR12 "as good as it currently gets" * php-cs-fixer: apply PSR12 to codebase * tests: add workaround to keep unused imports for snapshot testing * php-cs-fixer: apply no_unused_imports * php-cs-fixer: apply array_syntax short * php-cs-fixer: apply single_quote * php-cs-fixer: switch ordered_imports sort_algorithm to alpha Let's be opinionated here for consistency * php-cs-fixer: split between non-tests and tests and share config * php-cs-fixer: apply declare_strict_types for tests * php-cs-fixer: apply fully_qualified_strict_types * php-cs-fixer: apply space_after_semicolon * php-cs-fixer: apply trailing_comma_in_multiline_array * php-cs-fixer: apply trim_array_spaces * php-cs-fixer: apply unary_operator_spaces * php-cs-fixer: apply whitespace_after_comma_in_array * php-cs-fixer: apply native_function_invocation * php-cs-fixer: apply concat_space * grumphp: reflect we're using phpcsfixer now * composer remove --dev squizlabs/php_codesniffer * gha: simplify fix-style approach Not really necessary to remove packages and then manually prevent unrelated commits creeping in Co-authored-by: Barry vd. Heuvel <[email protected]>
125 lines
4.7 KiB
PHP
125 lines
4.7 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class PostsTable extends Migration
|
|
{
|
|
public function up(): void
|
|
{
|
|
Schema::create('posts', function (Blueprint $table) {
|
|
$table->bigIncrements('id');
|
|
|
|
$table->char('char_nullable')->nullable();
|
|
$table->char('char_not_nullable');
|
|
|
|
$table->string('string_nullable')->nullable();
|
|
$table->string('string_not_nullable');
|
|
|
|
$table->text('text_nullable')->nullable();
|
|
$table->text('text_not_nullable');
|
|
|
|
$table->mediumText('medium_text_nullable')->nullable();
|
|
$table->mediumText('medium_text_not_nullable');
|
|
|
|
$table->longText('long_text_nullable')->nullable();
|
|
$table->longText('long_text_not_nullable');
|
|
|
|
$table->integer('integer_nullable')->nullable();
|
|
$table->integer('integer_not_nullable');
|
|
|
|
$table->tinyInteger('tiny_integer_nullable')->nullable();
|
|
$table->tinyInteger('tiny_integer_not_nullable');
|
|
|
|
$table->smallInteger('small_integer_nullable')->nullable();
|
|
$table->smallInteger('small_integer_not_nullable');
|
|
|
|
$table->mediumInteger('medium_integer_nullable')->nullable();
|
|
$table->mediumInteger('medium_integer_not_nullable');
|
|
|
|
$table->bigInteger('big_integer_nullable')->nullable();
|
|
$table->bigInteger('big_integer_not_nullable');
|
|
|
|
$table->unsignedInteger('unsigned_integer_nullable')->nullable();
|
|
$table->unsignedInteger('unsigned_integer_not_nullable');
|
|
|
|
$table->unsignedTinyInteger('unsigned_tiny_integer_nullable')->nullable();
|
|
$table->unsignedTinyInteger('unsigned_tiny_integer_not_nullable');
|
|
|
|
$table->unsignedSmallInteger('unsigned_small_integer_nullable')->nullable();
|
|
$table->unsignedSmallInteger('unsigned_small_integer_not_nullable');
|
|
|
|
$table->unsignedMediumInteger('unsigned_medium_integer_nullable')->nullable();
|
|
$table->unsignedMediumInteger('unsigned_medium_integer_not_nullable');
|
|
|
|
$table->unsignedBigInteger('unsigned_big_integer_nullable')->nullable();
|
|
$table->unsignedBigInteger('unsigned_big_integer_not_nullable');
|
|
|
|
$table->float('float_nullable')->nullable();
|
|
$table->float('float_not_nullable');
|
|
|
|
$table->double('double_nullable')->nullable();
|
|
$table->double('double_not_nullable');
|
|
|
|
$table->decimal('decimal_nullable')->nullable();
|
|
$table->decimal('decimal_not_nullable');
|
|
|
|
$table->unsignedDecimal('unsigned_decimal_nullable')->nullable();
|
|
$table->unsignedDecimal('unsigned_decimal_not_nullable');
|
|
|
|
$table->boolean('boolean_nullable')->nullable();
|
|
$table->boolean('boolean_not_nullable');
|
|
|
|
$table->enum('enum_nullable', ['foo', 'bar'])->nullable();
|
|
$table->enum('enum_not_nullable', ['foo', 'bar']);
|
|
|
|
$table->json('json_nullable')->nullable();
|
|
$table->json('json_not_nullable');
|
|
|
|
$table->jsonb('jsonb_nullable')->nullable();
|
|
$table->jsonb('jsonb_not_nullable');
|
|
|
|
$table->date('date_nullable')->nullable();
|
|
$table->date('date_not_nullable');
|
|
|
|
$table->dateTime('datetime_nullable')->nullable();
|
|
$table->dateTime('datetime_not_nullable');
|
|
|
|
$table->dateTimeTz('datetimetz_nullable')->nullable();
|
|
$table->dateTimeTz('datetimetz_not_nullable');
|
|
|
|
$table->time('time_nullable')->nullable();
|
|
$table->time('time_not_nullable');
|
|
|
|
$table->timeTz('timetz_nullable')->nullable();
|
|
$table->timeTz('timetz_not_nullable');
|
|
|
|
$table->timestamp('timestamp_nullable')->nullable();
|
|
$table->timestamp('timestamp_not_nullable');
|
|
|
|
$table->timestampTz('timestamptz_nullable')->nullable();
|
|
$table->timestampTz('timestamptz_not_nullable');
|
|
|
|
$table->year('year_nullable')->nullable();
|
|
$table->year('year_not_nullable');
|
|
|
|
$table->binary('binary_nullable')->nullable();
|
|
$table->binary('binary_not_nullable');
|
|
|
|
$table->uuid('uuid_nullable')->nullable();
|
|
$table->uuid('uuid_not_nullable');
|
|
|
|
$table->ipAddress('ipaddress_nullable')->nullable();
|
|
$table->ipAddress('ipaddress_not_nullable');
|
|
|
|
$table->macAddress('macaddress_nullable')->nullable();
|
|
$table->macAddress('macaddress_not_nullable');
|
|
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
}
|