Start some documentation and a migration.
This commit is contained in:
parent
3fe372865c
commit
521b6af940
6
README.md
Normal file
6
README.md
Normal 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
|
29
app/db/migrations/20250407022039_episode_file_migration.php
Normal file
29
app/db/migrations/20250407022039_episode_file_migration.php
Normal 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();
|
||||||
|
}
|
||||||
|
}
|
@ -21,6 +21,7 @@ services:
|
|||||||
entrypoint: [ "bash", "-c" ]
|
entrypoint: [ "bash", "-c" ]
|
||||||
profiles:
|
profiles:
|
||||||
- noboot
|
- noboot
|
||||||
|
user: "1000:1000"
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:latest
|
image: nginx:latest
|
||||||
volumes:
|
volumes:
|
||||||
|
Loading…
Reference in New Issue
Block a user