Start some documentation and a migration.

This commit is contained in:
Dave Smith-Hayes 2025-04-06 22:28:39 -04:00
parent 3fe372865c
commit 521b6af940
3 changed files with 36 additions and 0 deletions

6
README.md Normal file
View File

@ -0,0 +1,6 @@
# Slovocast
Slovocast is a PHP application that runs the service to allows people to upload
and manage their podcast.
## Development

View File

@ -0,0 +1,29 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class EpisodeFileMigration extends AbstractMigration
{
/**
* Change Method.
*
* Write your reversible migrations using this method.
*
* More information on writing migrations is available here:
* https://book.cakephp.org/phinx/0/en/migrations.html#the-change-method
*
* Remember to call "create()" or "update()" and NOT "save()" when working
* with the Table class.
*/
public function change(): void
{
$table = $this->table('episodes_files')->addTimestamps();
$table->addColumn('url', 'string', [ 'null' => false ])
->addColumn('length', 'int', [ 'null' => false ])
->addColumn('type', 'string', [ 'null' => false ]);
$table->create();
}
}

View File

@ -21,6 +21,7 @@ services:
entrypoint: [ "bash", "-c" ]
profiles:
- noboot
user: "1000:1000"
nginx:
image: nginx:latest
volumes: