belamov / postgres-range

Laravel package for PostgreSQL range types support
MIT License
34 stars 3 forks source link

Try to add support of range types within Blueprint class #2

Closed belamov closed 4 years ago

belamov commented 4 years ago

It would be cool if we can use this code

Schema::create(
            'table',
            static function (Blueprint $table) {
                $table->id();
                $table->dateRange('date_range');
                $table->timestampRange('timestamp_range');
                // all other range types
            }
        );

Instead of SqlGenerator class

Useful links: