From 521b6af940106b15da125e67db8dfb2d1bfad6aa Mon Sep 17 00:00:00 2001 From: Dave Smith-Hayes Date: Sun, 6 Apr 2025 22:28:39 -0400 Subject: [PATCH] Start some documentation and a migration. --- README.md | 6 ++++ .../20250407022039_episode_file_migration.php | 29 +++++++++++++++++++ docker-compose.yml | 1 + 3 files changed, 36 insertions(+) create mode 100644 README.md create mode 100644 app/db/migrations/20250407022039_episode_file_migration.php diff --git a/README.md b/README.md new file mode 100644 index 0000000..e8d439b --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +# Slovocast + +Slovocast is a PHP application that runs the service to allows people to upload +and manage their podcast. + +## Development diff --git a/app/db/migrations/20250407022039_episode_file_migration.php b/app/db/migrations/20250407022039_episode_file_migration.php new file mode 100644 index 0000000..0178b11 --- /dev/null +++ b/app/db/migrations/20250407022039_episode_file_migration.php @@ -0,0 +1,29 @@ +table('episodes_files')->addTimestamps(); + $table->addColumn('url', 'string', [ 'null' => false ]) + ->addColumn('length', 'int', [ 'null' => false ]) + ->addColumn('type', 'string', [ 'null' => false ]); + + $table->create(); + } +} diff --git a/docker-compose.yml b/docker-compose.yml index c1fd63f..7f51af9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,6 +21,7 @@ services: entrypoint: [ "bash", "-c" ] profiles: - noboot + user: "1000:1000" nginx: image: nginx:latest volumes: