Open georgehristov opened 4 years ago
https://github.com/atk4/schema/blob/a43075334ada3c81b93af59b78d642442220cc71/src/Migration.php#L230
Suggest to introduce $persist attribute in the atk4\data\Field class with functionality as follows:
$persist
atk4\data\Field
$persist = false
$never_persist
$persist = ['length' => 5]
atk4\schema\Migration
$persist = ['type' => 'text']
Similar concept already laid out in atk4/data/feature/number-field branch
https://github.com/atk4/schema/blob/a43075334ada3c81b93af59b78d642442220cc71/src/Migration.php#L230
Suggest to introduce
$persist
attribute in theatk4\data\Field
class with functionality as follows:$persist = false
takes over$never_persist
$persist = ['length' => 5]
array as list of parameters whichatk4\schema\Migration
class will use$persist = ['type' => 'text']
type key will determine field individual persistence type