Is it possible to rename firebase database name? - firebase

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.

Related

Hosting in Firebase without the hyphen and project id

It is probably an easy question but I am not able to figure it out. I have a project that I have configured in Firestore to have a domain like "loremipsum.web.app". However, when I do the firebase init and then firebase deploy, it is hosted in "loremipsum-9dd7.web.app" which is the project id. I would like to have it without the hyphen and that id number. How can I do it?
Here’s a screenshot of the hosting section of my project. The first one is the one I want to host in and the second one is where it is hosting.
That is something you can't do. The reason there are those numbers is that someone else already is using that app name loremipsum for his project. When you have choosen your Firebase project name you had the same and Firebase added those numbers to make your project name unique.
Just to make it clear. Even if your name is as you tiped it the "real" project name will be the one with the numbers as you can see on this example:
I can see in most places the name I tiped in but Firebase will use the one with the numbers for hosting.
So if you would use the domain without the numbers you would land on his project and not yours.
To have a nice domain just connect a custom one to your Firebase project. You can read more about it here.
It looks like you manually added a second site to your project. You should check this documentation on how to handle such situations. You need to change your firebase configuration and defined on witch target to deploy your site.

How can I prevent somebody who has my google-services.json from accessing my project?

I would like to know how can I prevent somebody who has my google-services.json file associated with one of my Firebase Firestore projects from accessing my project.
you don't need to create a new google-service.json after you make any changes to console,
it will be automatically created,
you just need to download it from
settings -> Project settings -> select your package/bundle-id -> click the download icon
I don't there's a way to you can change those credentials for the same project. Even if you delete that app and recreate it in Firebase project, it'll change the mobilesdk_app_id only. Creating a new project maybe the only way to get a completely new google-services.json
I'm not sure which SSH keys you are referring to but if you are just re-configuring your application then you can visit https://console.firebase.google.com/project/_/settings/general and then select the app name you are looking for. You'll have an option to download google-services.json there. The rest of configuration process should remain the same.

Delete Firestore database from project

I have a firebase project and I added a Firestore database but I forgot to choose the right location. Since the location can not be modified after creating the database and the database is empty I would like to just delete it and create a new one with the correct location. Is this possible or do I need to create the whole project again?
Would appreciate help a lot.
Once a region is set for a project, it can't be changed. In the documentation it says:
Warning: Setting the location for one of the following services [Firestore, Storage, App Engine] also sets the location for the others. After you set your project's default GCP resource location, you cannot change it.
So, you will have to create a whole new project.

Change firebase deploy directory

Is there any way that I could change the directory for firebase deploy?
I want to change the 'notificationtest...' into another firebase directory name:
I hope I am giving a clear question here though because I don't know how to explain it in proper words.
That notificationtest-59f94 is your project ID, which you can't change after your project was created. If you want to deploy to a different URL, you will have to create another project.
Note that the console adds a suffix ("59f94" in your case) to new projects if another project already exists with the name you picked. So you will have to pick a unique name to prevent getting such a suffix.
And last I checked the project name had to have a - in it. So if you don' specify one yourself, the console will also add a suffix. Note though that these rules occasionally change, so be sure to check what the console says your project ID will become.

Where exactly does Membership.CreateUser Method add the new user to?

So I created my first ASP.NET MVC 3 internet application which comes with the built in functionality of registering/logging in.
I tried to explore where exactly is the database the application interacts with.In the corresponding controller/action method I see a call to Membership.CreateUser with these parameters.To which MSDN link says it adds these values to the data store.My question is to which table of what database it adds these values?(so that I can see the updates)
Using default setting, your data is saved in in its default database ASPNETDB.MDF. Click Show all files in the Solution explorer then click App_Data. You should see ASPNETDB.MDF. Double click it then a database will appear to you in the Server Expolorer. On the ASPNETDB.MDF click Tables and find aspnet_Users.
Hope this helps. :)
Assuming all the above is true (haven't change the default setup, connection string etc.) then look for tables called aspnet_users, aspnet_membership and a few others prefixed with aspnet_ . that's where to look.
If you didn't change anything, go to web.config and find DefaultConnectionString. Thats where the data inserted and the table name is UserProfiles.
it creates a db file in App_Data folder.
If you use default settings then the Database Name where the Table will be installed is: aspnetdb. Also the table names are self explanatory as seen in below image. e.g. for MemberShip the table used is: dbo.aspnet_Membership.
The tool used to install these tables is aspnet_regsql.exe, and you can easily call it from
within a Visual Studio Command Prompt window

Resources