A set of plugins to help on managing geographic information

This commit is contained in:
ahwelp
2023-01-24 20:41:37 +00:00
parent 616a97f16c
commit a60cfcec3a
61 changed files with 7895 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
use Schema\Wrapper as Wrapper;
use App\Core\Sanity\MigratorController as Migrator;
function geo_params_upgrade($pluginversion) {
if ($pluginversion < "0.0.1") {
$table = Wrapper::get_table("geo_params");
$table->addColumn("table", "string", Array("null" => false));
$table->addColumn("key", "string", Array("null" => false));
$table->addColumn("value", "string", Array("null" => false));
$table->create();
Migrator::getInstance()->update_plugin_version("geo_params", "1.0.0");
return;
}
}
function geo_params_rollback($pluginversion) {
if($pluginversion > "0.0.1"){
$table = Wrapper::get_table("geo_params");
$table->drop();
return;
}
}