Has this actually been tested for Postgres? Errors that are visible to the naked eye:
- It does not maintain the order of the columns even if you use the function $crud->columns.
- The column that is table PK in the tabular view disappears.
- The $crud->fieldType(‘vparam’, ‘password’) function does not work, it shows the raw data no ****
public function parameters()
{
$crud = $this->_getGroceryCrudEnterprise();
//$crud->setSkin('dark');
$crud->setCsrfTokenName(csrf_token());
$crud->setCsrfTokenValue(csrf_hash());
$crud->setSubject('Parameters', 'Parameters');
$crud->setTable('parametro');
$crud->columns(['dparam','vparam','created_at']);
$output = $crud->render();
return $this->_example_output($output);
}
CREATE TABLE parametro (
dparam varchar(50) NOT NULL,
vparam varchar(50) NOT NULL,
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
)
ALTER TABLE IF EXISTS public.parametro
ADD CONSTRAINT "PK_PARAMETRO" PRIMARY KEY (dparam);