Skip to content

Commit 9097768

Browse files
committed
[FIX] Migration.
1 parent c1c16a9 commit 9097768

File tree

3 files changed

+12
-33
lines changed

3 files changed

+12
-33
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
],
1919
"require": {
2020
"php": "^8.3",
21-
"evolutioncms/evolution": "^3.3"
21+
"evolution-cms/evolution": "^3.3"
2222
},
2323
"autoload": {
2424
"psr-4": {

database/migrations/2022_10_15_162000_create_s_lang_tables.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ public function up()
3434
$table->unique(['resource', 'lang'], 'resource_lang');
3535
$table->timestamps();
3636
});
37+
38+
Schema::create('s_lang_tmplvar_contentvalues', function (Blueprint $table) {
39+
$table->id();
40+
$table->string('lang', 4)->default('base')->index()->comment('Language of content data');
41+
$table->unsignedInteger('tmplvarid')->index()->comment('Template variable ID');
42+
$table->foreign('tmplvarid')->references('id')->on('site_tmplvars')->cascadeOnDelete();
43+
$table->unsignedInteger('contentid')->index()->comment('Site content resource ID');
44+
$table->foreign('contentid')->references('id')->on('site_content')->cascadeOnDelete();
45+
$table->longText('value')->fulltext('value')->nullable()->comment('Translated value of the template variable');
46+
});
3747
}
3848

3949
/**
@@ -46,6 +56,7 @@ public function down()
4656
Schema::table('s_lang_content', function ($table) {
4757
$table->dropUnique('resource_lang');
4858
});
59+
Schema::dropIfExists('s_lang_tmplvar_contentvalues');
4960
Schema::dropIfExists('s_lang_content');
5061
Schema::dropIfExists('s_lang_translates');
5162
}

database/migrations/2024_05_10_104135_create_s_lang_tmplvar_contentvalues_table.php

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)