statamic-rad-pack / runway

Eloquently manage your database models in Statamic.
https://statamic.com/runway
MIT License
107 stars 43 forks source link

Generated blueprint error on Float values #459

Closed jmalko closed 3 months ago

jmalko commented 3 months ago

Description

php please runway:generate-blueprints creates an incorrect Blueprint field type for floats. If you change type: floatval to type: float it's all good.

image

Steps to reproduce

  1. Have a float in model migration
  2. run php please runway:generate-blueprints
  3. try to open the runway index page on CP

Environment

Environment Application Name: Statamic Laravel Version: 10.47.0 PHP Version: 8.3.2-1+ubuntu22.04.1+deb.sury.org+1 Composer Version: 2.6.5 Environment: local Debug Mode: ENABLED URL: octane.test Maintenance Mode: OFF

Cache Config: NOT CACHED Events: NOT CACHED Routes: NOT CACHED Views: CACHED

Drivers Broadcasting: log Cache: statamic Database: sqlite Logs: stack / single Mail: smtp Queue: sync Session: file

Statamic Addons: 1 Antlers: runtime Sites: 1 Stache Watcher: Enabled Static Caching: Disabled Version: 4.52.0 PRO

Statamic Addons statamic-rad-pack/runway: 6.5.0