first commit
This commit is contained in:
28
plugins/stCountriesPlugin/config/config.php
Normal file
28
plugins/stCountriesPlugin/config/config.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* SOTESHOP/stCountriesPlugin
|
||||
*
|
||||
* Ten plik należy do aplikacji stCountriesPlugin opartej na licencji (Professional License SOTE).
|
||||
* Nie zmieniaj tego pliku, jeśli chcesz korzystać z automatycznych aktualizacji oprogramowania.
|
||||
* Jeśli chcesz wprowadzać swoje modyfikacje do programu, zapoznaj się z dokumentacją, jak zmieniać
|
||||
* oprogramowanie bez zmiany kodu bazowego http://www.sote.pl/modifications
|
||||
*
|
||||
* @package stCountriesPlugin
|
||||
* @subpackage configs
|
||||
* @copyright SOTE (www.sote.pl)
|
||||
* @license http://www.sote.pl/license/sote (Professional License SOTE)
|
||||
* @version $Id: config.php 4 2009-08-24 08:52:56Z marcin $
|
||||
* @author Michal Prochowski <michal.prochowski@sote.pl>
|
||||
*/
|
||||
|
||||
/**
|
||||
* Włączanie modułów
|
||||
*/
|
||||
stPluginHelper::addEnableModule('stCountriesFrontend', 'frontend');
|
||||
stPluginHelper::addEnableModule('stCountriesBackend', 'backend');
|
||||
|
||||
/**
|
||||
* Dodawanie routingów
|
||||
*/
|
||||
stPluginHelper::addRouting('stCountriesPlugin', '/countries/:action/*', 'stCountriesBackend', 'list', 'backend');
|
||||
stPluginHelper::addRouting('stCountriesPluginDefault', '/countries', 'stCountriesBackend', 'list', 'backend');
|
||||
79
plugins/stCountriesPlugin/config/schema.yml
Normal file
79
plugins/stCountriesPlugin/config/schema.yml
Normal file
@@ -0,0 +1,79 @@
|
||||
---
|
||||
propel:
|
||||
_attributes:
|
||||
defaultIdMethod: native
|
||||
package: plugins.stCountriesPlugin.lib.model
|
||||
st_countries:
|
||||
_attributes:
|
||||
phpName: Countries
|
||||
created_at:
|
||||
type: timestamp
|
||||
updated_at:
|
||||
type: timestamp
|
||||
id:
|
||||
type: INTEGER
|
||||
primaryKey: true
|
||||
required: true
|
||||
autoIncrement: true
|
||||
iso_a2:
|
||||
type: CHAR
|
||||
size: 2
|
||||
iso_a3:
|
||||
type: CHAR
|
||||
size: 3
|
||||
continent:
|
||||
type: LONGVARCHAR
|
||||
number:
|
||||
type: VARCHAR
|
||||
size: 3
|
||||
opt_name:
|
||||
type: VARCHAR
|
||||
size: 255
|
||||
is_active:
|
||||
type: BOOLEAN
|
||||
default: 0
|
||||
is_default:
|
||||
type: BOOLEAN
|
||||
default: 0
|
||||
st_countries_area:
|
||||
_attributes:
|
||||
phpName: CountriesArea
|
||||
created_at:
|
||||
type: timestamp
|
||||
updated_at:
|
||||
type: timestamp
|
||||
id:
|
||||
type: INTEGER
|
||||
primaryKey: true
|
||||
required: true
|
||||
autoIncrement: true
|
||||
name:
|
||||
type: VARCHAR
|
||||
size: 255
|
||||
is_active:
|
||||
type: BOOLEAN
|
||||
default: 0
|
||||
st_countries_area_has_countries:
|
||||
_attributes:
|
||||
phpName: CountriesAreaHasCountries
|
||||
created_at:
|
||||
type: timestamp
|
||||
updated_at:
|
||||
type: timestamp
|
||||
id:
|
||||
type: INTEGER
|
||||
primaryKey: true
|
||||
required: true
|
||||
autoIncrement: true
|
||||
countries_id:
|
||||
type: INTEGER
|
||||
required: true
|
||||
foreignTable: st_countries
|
||||
foreignReference: id
|
||||
onDelete: cascade
|
||||
countries_area_id:
|
||||
type: INTEGER
|
||||
required: true
|
||||
foreignTable: st_countries_area
|
||||
foreignReference: id
|
||||
onDelete: cascade
|
||||
@@ -0,0 +1,26 @@
|
||||
propel:
|
||||
st_countries:
|
||||
_attributes:
|
||||
phpName: Countries
|
||||
isI18N: true
|
||||
i18nTable: st_countries_i18n
|
||||
opt_name: {change_column: name}
|
||||
|
||||
st_countries_i18n:
|
||||
_attributes:
|
||||
phpName: CountriesI18n
|
||||
id:
|
||||
type: integer
|
||||
required: true
|
||||
primaryKey: true
|
||||
foreignTable: st_countries
|
||||
foreignReference: id
|
||||
onDelete: cascade
|
||||
culture:
|
||||
isCulture: true
|
||||
primaryKey: true
|
||||
type: VARCHAR
|
||||
size: 7
|
||||
name:
|
||||
type: VARCHAR
|
||||
size: 255
|
||||
Reference in New Issue
Block a user