Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not support Geography migration data type #706

Open
securit opened this issue Nov 11, 2024 · 0 comments
Open

Does not support Geography migration data type #706

securit opened this issue Nov 11, 2024 · 0 comments
Labels
bug Something isn't working pending This issue is pending review

Comments

@securit
Copy link

securit commented Nov 11, 2024

  • Laravel Version: 11.30
  • PHP Version: 8.3 2.10 #.#.#
  • Platform: Mac

Issue:

Documentation states

Blueprint supports all of the available column types within Laravel.

but it fails to correctly define a geography in the database migrations

draft.yaml:

models:
  Location:
    name:  string:100
    description: nullable text
    coordinates: geography,points

Which creates a string for coordinates instead of a $table->geography

        Schema::create('locations', function (Blueprint $table) {
            $table->id();
            $table->string('name', 100);
            $table->text('description')->nullable();
            $table->string('coordinates');

instead of

        Schema::create('locations', function (Blueprint $table) {
            $table->id();
            $table->string('name', 100);
            $table->text('description')->nullable();
            $table->geography('coordinates', 'point');
@securit securit added bug Something isn't working pending This issue is pending review labels Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending This issue is pending review
Projects
None yet
Development

No branches or pull requests

1 participant