fix(migration): change old media file_key to file_path

fixes #314
This commit is contained in:
Yassine Doghri 2023-03-17 18:04:04 +00:00
parent 08acfd593c
commit a4141421aa
3 changed files with 5 additions and 3 deletions

View File

@ -59,6 +59,8 @@ deploy:
SSH_PORT: 3242
SOURCE_FOLDER: "docs/.vitepress/dist/"
before_script:
# install rsync for file transfers
- apt-get update && apt-get install rsync -y
# Run ssh-agent (inside the build environment)
- eval $(ssh-agent -s)
# Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store

View File

@ -22,7 +22,7 @@ class AddMedia extends Migration
'unsigned' => true,
'auto_increment' => true,
],
'file_key' => [
'file_path' => [
'type' => 'VARCHAR',
'constraint' => 255,
],

View File

@ -17,7 +17,7 @@ class RenameMediafileKey extends Migration
public function up(): void
{
$fields = [
'file_key' => [
'file_path' => [
'name' => 'file_key',
'type' => 'VARCHAR',
'constraint' => 255,
@ -30,7 +30,7 @@ class RenameMediafileKey extends Migration
{
$fields = [
'file_key' => [
'name' => 'file_key',
'name' => 'file_path',
'type' => 'VARCHAR',
'constraint' => 255,
],