When i create a new project, i get the random name for my database.
Question is can i use a custom url or i can only use the name assigned by firebase in this new update ?
When i import a project it keeps the custom url intact but when i create the new database i am not getting any options for custom URL.
For example, I have have my database on the url:
project-123456789.firebaseio.com
Is it possible to change the 'project-123456789' piece of the url in the new update? If yes, how?
create a new project on the legacy console and then import to new google console
Related
How can I create a firebase project without selecting parent resource. When I try to create a project with an new account, I don't need to use resources from an parent organization if I use a new account. Here is a picture of the screen i get https://i.stack.imgur.com/jWtPY.png
We had created the multiple databases. Now, we need to rename the database that is used for testing purpose. So, Is it possible to rename check-12cc0-test database? Please check out the image below.
You can change your project name from here
I have it in Spanish, but at the right of project overview, project configuration you should see the pencil to edit your project name.
Note you can't change your database name since it's the ID of the project, you will need to create a new one and delete the one you have to change the database name. You can only change your children and keys inside your database main tree node.
Since the id of the project can't change, this is what Firebase tells to us about it:
ID of the project
It is the unique identifier of your Firebase project. You can find it in the project URL: https://console.firebase.google.com/project/<projectId>
Remember that for edit the nodes and keys you can't do it directly from Firebase, instead you should export your JSON Database and edit it, then reupload it, or do it programmatically.
I re-design a SPA that is deployed in firebase with custom domain, I have done all my test on another firebase project, now I would like to deploy the new version to the public app by creating a new folder, lets say public2 in the public project, change the entry in firebase.json and then do a new firebase deploy.
Can this be done? and in case I will like to return to prior version, be able to change it back ?
thanks
Actually the solution was straight forward, just copied the code of the new site to a new folder and changed the firebase.json entry to referring this new folder.
then issue firebase deploy again.
Hope this helps someone else.
Is it possible to export the Firebase database and then make changes on an editor like Notepad and then import the database enforcing that only the changes made offline get updated?
For example, say I export the database today and add 6000 new child nodes through my notepad and then two days I import the database back to update it with the new nodes without affecting the other updates that have been made by my users.
What happens by default is that when I import the database it will rewrite every value that does not match. Hope I'm making sense.
As you can see from above image, firebase clearly says All data at this location will be overwritten, so you have to stop writing new data when you are updating the data by export and then import.
Now to recover such data, you can code that way to write upcoming data into json file or another database and stop writing it into firebase.
Hope this helps.
If you are using the Export JSON option from your Firebase Console, and than you make some offline changes on that file and than you use Import JSON option, no, it's not possible, because the new added file overrides the old one. So in other words, if you previously have made some changes, all the changes will be lost when you upload the modified file.
There are two options to solve this.
Stop to database for beeing written -> Export the file -> Make the changes -> Import the file.
and
Make all changes programmatically even if the database is changed by users.
Hope it helps.
I'm writing a custom Drupal module for a mobile service. That module acts like a web form, but I'm having a problem when uploading a file. All values are inserted into the database successfully except for the file.
I think the function "_webform_client_form_submit_process" is not calling "_webform_submit_file". You can try following solution
1. Try using updating your webform module with the latest release.
2. Try removing your file upload field from fieldset, if its in any.
3. Check the temp and destination directory permission.
I've almost went over the code of the webform module and I solved it now, you have to use file_save and get the $file->fid and pass it to the data object of the submissions object, then call webform_submission_insert and get the $sid and pass it to file_usage_add, this got my module working