How to rename the table persistent_logins in Spring-Security?
How to rename the table persistent_logins in Spring-Security
I found one solution, but it’s not clear there. Who can show how to do this?
Related
I'd like to use UUID's for my user table and therefore have to modify the personal_access_tokens table to be able to handle it (uuidMorphs() insteand of morphs()).
Problem is, the migration for this table is delivered with Sanctum inside the vendor folder (2019_12_14_000001_create_personal_access_tokens_table.php). Is there a way to modify/overwrite it?
I found the solution in the Laravel Sanctum docs:
https://laravel.com/docs/9.x/sanctum#migration-customization
I'ts just for practice and I need how to set up an Auth in Laravel but in the same table User. I know I have to use the default model User.php. I added my new column "type" where here I'm going to manage common users and admins. I edited and migrated that, also according to docs I created my guards and register providers but I don't know whats next. I know how to do it with another table but in the same table I have no idea how. I don't know how this Laravel's files works.
I would need help with ofsaa application, I would like to change home screen when you login to application, currently it directly goes to "Financial Services Applications", but I would like default home screen where user has a chance to select his own home screen.
I was told that this is under CONFIG_OWNER schema, and that I should only remove one record in table. But I don't know which table.
Thanks in advance.
Br, Aljaž.
You can find the records in cssms_usr_startup_page table of the configuration schema. locate the user id and remove the row.
This table cssms_usr_startup_page doesn't have any record in Version 8110.
However, you can refer to the Oracle support team on this. Kindly update the solution here as well.
I am working on OFSAA around 2+ years but haven't faced such issue.
I need to know if it is advisible to add new table in default database of Joomla. Will it be preserved if I update my Joomla.
If yes, then can anybody describe the steps?
Yes, you can add custom database tables if you wish, it doesn't pose any threats. Just make sure you use Joomla coding standards when getting or adding data from the table. More information on that can be found here:
http://docs.joomla.org/J2.5:Accessing_the_database_using_JDatabase
As for updating Joomla, yes, the table will be preserved.
Hope this helps
As already said, you can add any table you like to your Joomla database. Joomla doesn't care for tables it doesn't know. And those extra tables are not modified by an update.
BUT keep two things in mind:
1. If you make backups of your database with a joomla extension (such as lazyBackup) and you want to backup your extra-tables too, then make sure to include these extra tables by choosing the appropriate options in the backup extension. By default those extra table might not be included in your backup.
2. As you can easily see in phpMyAdmin all joomla tables start with a prefix such as he3ie_. This prefix is different on every joomla installation (if you did not choose your own). It is no good idea to start your extra tables with this prefix. This might collide with joomla-tables which could be created in the future (by joomla or by an extension).
as everybody said adding tables will not be affected by Joomla upgrades unless they decide to name a new table the same as yours. A table "name" could also clash with another extension that you want to install so it would be good advise to spend some time thinking on a name that will make sure is unique to your use or component.
Of course if this is a one-off custom thing then it matters less.
If you are looking for a more in-depth tutorial try this YouTube Video: http://www.youtube.com/watch?v=twT3q7dyVpI
Joomla update doesn't disturb your custom database tables or any other data. Just create the database as you want like phpmyadmin etc & use it without any fear.
Can anybody tell me that how can i remove all the settings associated to the extension from the database tables. Like if i am uninstalling the abc extension than the value abc_setup will also be deleted from the core_resource table. Similarly other setting from the core_config_data table too. And also delete the database tables too. Thanks.....
You will have to do that manually in the database (or sometimes via a script which is provided by the plugin author).
You can easily remove your extension using magento connect. It will remove all associated tables from DB. No settings are saved. And your extension is not EAV type then you can delete that file manually with tables.
Some extension add EAV related row in eav_attribute table so you need to check its setup folder for this and if that has been added you need to delete it manually.
Also one entry of version goes into core config table that too needs to be removed.
Module moght also created tables specific for its own feature looking at its setup folder sql code will give you idea on that.
Plus you need to remove complete module folder and >xml that was added to etc/modules folder.