[fpc-pascal] Database migration
Darius Blaszyk
dhkblaszyk at gmail.com
Fri Jun 19 13:55:45 CEST 2020
Hi all,
After spending the last 12 months working intensively on a PHP based
project, I moved back to FPC once again for another project. One of the
more interesting concepts working in PHP was migrations. These are simple
scripts that define the columns in a database table including indexes and
foreign key constraints. Next to that also seeding and factories are
integrated in this design. A trivial example is shown below;
Schema::create('flights', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('airline');
$table->timestamps();
});
I already did some tests in pascal and it seems quite doable to create a
system like this. But before I proceed I would like to check here if
something like this already exists and if other developers are interested
in this. If so I would publish the sources on github.
Rgds, Darius
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20200619/ad626610/attachment.htm>
More information about the fpc-pascal
mailing list