-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HOW TO ADD NEW COLUMN #107
Comments
@ctw28 unfortunately there is currently no way to add a new column to an existing file. If you really need it, I can start developing this feature. |
yes, i need it, and i would say thank you if you want to develop this feature. and i think, it will be great feature. |
You can add a column to an existing table in Laravel before you set data use Illuminate\Support\Facades\DB; $dbfTable = new WritableTable($FullTableLocationPath, [ foreach ($query as $row) {
} $dbfTable->close(); You can do it using PDO in laravel as well $dsn = 'dbase://your_path/to/your_dbase_file'; $sql = 'ALTER TABLE your_table_name ADD COLUMN new_column_name VARCHAR(255)'; .... Then do set data parts here.. |
Adding notes about adding columns. The 2.2.0 version now has a way to add columns to a new table. Note: This is good if the table is not too big. I have tables I would not do this with because they are huge, like in the millions of records from old DBASE software. But if they are not so big, then pump the jam man. Good Luck! |
i need to add some column field in same file. can u tell how? cause in README.md i only found add column when create new file. thank you
The text was updated successfully, but these errors were encountered: